AtomGraph / Processor

Ontology-driven Linked Data processor and server for SPARQL backends. Apache License.
https://hub.docker.com/r/atomgraph/processor/
Apache License 2.0
58 stars 7 forks source link

Templates should inherit annotations #10

Closed namedgraph closed 9 years ago

namedgraph commented 9 years ago

It should not be necessary to define annotations on a template that is the same as on its super-template. That can be solved by annotation inheritance via the rdfs:subClassOf relationship. This is object-oriented kind of inheritance which is different from RDF/OWL inference rules: http://www.w3.org/TR/sw-oosd-primer/#comparison

However, doing it on annotation properties of type owl:AnnotationProperty should not be a problem:

Annotation information is not really part of the logical meaning of an ontology http://www.w3.org/TR/owl2-primer/#Document_Information_and_Annotations

In Java, @Inherited is used to enable such inheritance on annotations: https://docs.oracle.com/javase/7/docs/api/java/lang/annotation/Inherited.html

namedgraph commented 9 years ago

SPIN inherits properties the same way: http://spinrdf.org/spin.html#spin-class-description

namedgraph commented 9 years ago

Solved using Jena rules: https://github.com/Graphity/graphity-processor/issues/13