Skip to content
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

can you support schema:domain/rangeIncludes ? #69

Closed
VladimirAlexiev opened this issue May 10, 2018 · 7 comments
Closed

can you support schema:domain/rangeIncludes ? #69

VladimirAlexiev opened this issue May 10, 2018 · 7 comments
Labels

Comments

@VladimirAlexiev
Copy link

https://rawgit.com/euBusinessGraph/eubg-data/master/ontology/prop-ebgadminunitl6.html shows no meaningful domain and range. We define it as follows:

ebg:adminUnitL6 a owl:ObjectProperty ;
  schema:domainIncludes locn:Address ;
  schema:rangeIncludes ebg:LAURegion ;
  rdfs:label "Municipality/Commune/Settlement" ;
  rdfs:isDefinedBy ebg: ;
  skos:definition "LAU2 region of the address." .

We use schema:domain/rangeIncludes because they allow polymorphic properties, whereas rdfs:domain/range bind a property to a single class, so they restrict flexibility and don't promote reuse.

I selected Ontodocs because I saw your schema.org example http://www.michelepasin.org/support/ontospy-examples/schema_org_topbraidttl/prop-schemaaction.html so I assumed you support schema:domain/rangeIncludes. But I notice now this is "Schema.org (converted to OWL by TopQuadrant)", and it uses rdfs:domain/range:

schema:action a owl:DatatypeProperty ;
    rdfs:label "action"^^xsd:string ;
    schema:supersededBy schema:muscleAction ;
    rdfs:comment "The movement the muscle generates." ;
    rdfs:domain schema:Muscle ;
    rdfs:range xsd:string .

Unfortunately no doc generator supports schema:domain/rangeIncludes, except schema's own generator :-(. Is there a chance ontodoc will support it?

@VladimirAlexiev
Copy link
Author

OnToology/OnToology#383

@VladimirAlexiev
Copy link
Author

Another symptom: https://rawgit.com/euBusinessGraph/eubg-data/master/ontology/class-schemageocoordinates.html
"Instances of schema:GeoCoordinates can have the following properties.... From class owl:Thing" and then all props in the ontology.
Since it assumes all domains/ranges are owk:Thing, it assumes all properties apply anywhere.

@sumutcan
Copy link
Contributor

sumutcan commented Jul 27, 2018

Hi @VladimirAlexiev ,

I adapted the Ontospy library that is used by ontodocs to schema.org. This version works ONLY with schema:domainIncludes and rangeIncludes. I am planning to adapt the library as a framework to generate external schema.org extensions.

Feel free to clone: https://github.com/STIInnsbruck/Ontospy.
Once you include this module to your ontodocs tool, it should visualize any ontology using domainIncludes and rangeIncludes properties.

@VladimirAlexiev
Copy link
Author

VladimirAlexiev commented Jul 28, 2018 via email

@sumutcan
Copy link
Contributor

sumutcan commented Jul 30, 2018

@VladimirAlexiev @lambdamusic
PR #46

@lambdamusic
Copy link
Owner

Thanks @sumutcan and @VladimirAlexiev - this is a great addition.

@VladimirAlexiev
Copy link
Author

eccenca/jod#15 asks the same props to be handled in 3 namespaces: schema, dcam, dcid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants