-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support rdfs:domain and rdfs:range in generated schema by import-rdfs
#154
Comments
I believe I've fixed this in #152. Can you please test that branch to let me know if it resolves your issue? |
@multimeric cfe7e15#diff-b6464c40227100611b000caf1086c351935db40bcf0f78ca606ca68d94e5ca3fL37-L43:
After testing it with commit 65869ba before the merge Was the revert of that changes unintended? Just two caveats:
|
Thanks for the report. It probably was just a faulty merge. I'll likely fix it early next week. |
Okay, I've rebased and hopefully fixed the underlying issue. |
@multimeric Thanks, I tried it with the latest commit and it includes now Only this two issues still persist:
|
Hmm, I can't replicate this @prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
foaf:knows rdf:type owl:ObjectProperty ;
rdfs:domain foaf:Person ;
rdfs:range foaf:Person ;
rdfs:comment "A person known by this person (indicating some level of reciprocated interaction between the parties)." ;
rdfs:isDefinedBy <http://xmlns.com/foaf/0.1/> ;
rdfs:label "knows" .
foaf:Person rdf:type owl:Class ;
rdfs:subClassOf <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing> ,
foaf:Agent ;
owl:disjointWith foaf:Project ;
rdfs:comment "A person." ;
rdfs:isDefinedBy <http://xmlns.com/foaf/0.1/> ;
rdfs:label "Person" . I get: name: example
id: http://example.org/example
imports:
- linkml:types
prefixes:
linkml: https://w3id.org/linkml/
foaf: http://xmlns.com/foaf/0.1/
default_prefix: example
default_range: string
slots:
knows:
comments:
- A person known by this person (indicating some level of reciprocated interaction
between the parties).
slot_uri: foaf:knows
range: Person
classes:
Agent:
class_uri: foaf:Agent
SpatialThing:
class_uri: ns1:SpatialThing
Person:
comments:
- A person.
is_a: Agent
slots:
- knows
class_uri: foaf:Person |
You're right that the default prefix is messed up, and I think I need some input from the maintainers on what to do about that, but to be honest you should always pass in a poetry run schemauto import-rdfs --format xml http://xmlns.com/foaf/spec/index.rdf --schema-name foaf --model-uri http://xmlns.com/foaf/0.1/` |
@multimeric @jo-fra - agree the default 'example' is confusing and we may just want to get rid of that in the automated step. But agree with @multimeric that passing in an actual value here is a great standard practice. We tend to think of schema-automator as a bootstrapping tool, that users will interact with to get them most of the way towards a working schema, but that they will have to edit to add finishing touches. |
Okay I've just pushed a new change. Firstly, it removes the custom |
When generating a LinkML schema using
schemauto import-rdfs
the resulting LinkML schema does not incorporate the rdfs:domain and rdfs:range definitions.E.g. the following excerpt from FOAF:
results in the the following LinkML schema:
I would expect that rdfs:domain and rdfs:range of foaf:knows property is incorporated like:
The text was updated successfully, but these errors were encountered: