Closed namedgraph closed 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.
gp:template
andspin: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