-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem running DBpedia_music example #129
Comments
@DougalW thanks for reporting this. We will have a look and come back to you. |
@dgarijo Yes I tried both approaches. |
Hi @DougalW It seems a bug. I'm trying to reproduce the error. Did you use the master branch or the release 3.4.0? Thanks |
Unable to reproduce using the master branch. I have improved the tests on our CI system. Now, the dbpedia music tests includes:
You can see the test script here |
Hey! I found it. The following options are generated the error. enable_post_paths: true
enable_delete_paths: true
enable_put_paths: true In the dbpedia_music, these options must be false because we cannot edit the dbpedia endpoint. @DougalW feel safe to test the version 3.4.0 or 3.5.0 using the updated configuration file @dgarijo I'm going to verify the model_catalog. |
Thanks @mosoriob!! will try to see if we need to update the doc |
issue does still exist when setting true on put, post and delete even on local endpoint. My yaml file name: persontest
output_dir: outputs
## OpenAPI Section
### Name, version and URL of the OpenAPI
openapi:
openapi: 3.0.1
info:
description: This is the API of the Persons test
title: PersonTest
version: v1.0.0
servers:
- url: http://localhost:3030/test/sparql
## Ontologies
### List of ontologies
ontologies:
- person_test.ttl
endpoint:
url: http://localhost:3030/test/sparql
prefix: http://test.com/rdf/resource/
## Filter the paths by methods
enable_get_paths: true
enable_post_paths: true
enable_delete_paths: false
enable_put_paths: false
## Select the classes to add in the API
follow_references: false My person_test.ttl file: @prefix : <https://w3id.org/example#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
:Person rdf:type owl:Class ;
rdfs:label "Person"@en.
:Professor rdf:type owl:Class ;
rdfs:subClassOf :Person ;
owl:disjointWith :Student ;
rdfs:label "Professor"@en .
:Student rdf:type owl:Class ;
rdfs:subClassOf :Person ;
owl:disjointWith :Professor ;
rdfs:label "Student"@en .
:identifier rdf:type owl:DatatypeProperty ;
rdfs:domain :Person ;
rdfs:range xsd:string ;
rdfs:label "name"@en .
:gender rdf:type owl:DatatypeProperty ;
rdfs:domain :Person ;
rdfs:range [ rdf:type rdfs:Datatype ;
owl:oneOf [ rdf:type rdf:List ;
rdf:first "female" ;
rdf:rest [ rdf:type rdf:List ;
rdf:first "male" ;
rdf:rest rdf:nil
]
]
] ;
rdfs:label "gender"@en .
:researchField rdf:type owl:DatatypeProperty ;
rdfs:domain :Professor ;
rdfs:range xsd:string ;
rdfs:label "research field"@en .
:teachesTo rdf:type owl:ObjectProperty ;
rdfs:domain :Professor ;
rdfs:range :Student ;
rdfs:label "teaches to"@en .
:identifier rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdfs:domain :Person ;
rdfs:range xsd:string ;
rdfs:label "identifier"@en .
:hasRecord rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdfs:domain :Student ;
rdfs:range :StudentRecord ;
rdfs:label "has record"@en .
:Professor rdf:type owl:Class ;
rdfs:subClassOf :Person ,
[ rdf:type owl:Restriction ;
owl:onProperty :teachesCourse ;
owl:someValuesFrom :Course
] . Is there any plan to fix it? |
I used the version 3.6.0 btw: |
@ddtxra, If you dig in further and find the problem, please let us know. |
Hi, when I build the specification for the DBpedia_music example it completes with success. When I generate the server it also completes successfully. When I run it either via Python3 or via the docker build, it generates this error:
The only other issue I could see in the log output was when I run the generate-server.sh script it thinks I don't have yapf installed. I installed it via pip but the script still returns this error. I even created a sim link in /usr/local/bin/yapf to point to the binary in my python3.8 installation, but same message is returned.
The text was updated successfully, but these errors were encountered: