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 6 forks source link

Replace gp:template with spin:constructor? #15

Closed namedgraph closed 9 years ago

namedgraph commented 9 years ago

gp:template and spin:constructor serve a very similar purpose -- define the shape of a new instance of a class. If possible, we should reuse SPIN machinery. http://spinrdf.org/spin.html#spin-constructors

namedgraph commented 9 years ago

gp:template uses a single CONSTRUCT query to construct both the document class instance and the (optional) topic class instance, so that respective blank nodes can be connected using foaf:primaryTopic/foaf:isPrimaryTopicOf properties in the same RDF graph.

It should be possible however to use 2 separate spin:constructor queries attached to document and topic classes respectively, and insert the FOAF properties on the fly. Class restrictions indicate the necessary relationships.