- From: James Rothering <jr@jamesrothering.com>
- Date: Thu, 02 Aug 2012 13:54:26 -0700
- To: semantic-web@w3.org
Is is possible to implement an inheritance hierarchy in a SPARQL query? In other words, is it possible to select all from a parent type, but overriding from a child type wherever an entry exists? I.e., given this data: ex:parent001 rdf:type ex:"Parent" ex:widgetName ex:"test" ex:hasChild ex:"child001" ex:child001 ex:widgetName ex:"over-ridden widget". Can I craft a select {?s ?p ?o} that will leave out the link between parent and child, yet return the over-ridden values of the predicates? i.e., that will return: ex:parent001 rdf:type ex:"Parent" ex:widgetName ex:"over-ridden widget". Regards, James
Received on Thursday, 2 August 2012 20:54:52 UTC