Page 1 of 1

Part 9, Sparql query on inherited classes

Posted: Wed Jan 23, 2013 3:06 pm
by OnnoPaap
Question came up in the TIP meeting.

If a Sparql query is issued for a specific classification of instance objects, would the query also produce classifications to children of the queried class?

For example, the query asks for objects classified as "work package". Will it give engineering as well as construction work packages?

If yes, how would that work...?

Re: Part 9, Sparql query on inherited classes

Posted: Thu Jan 24, 2013 1:56 pm
by vvagr
I'm not sure I've understood your question.

First case: There are objects classified as "work package". Some of them are also classified as "engineering domain", some as "construction domain" - by separate classifications. The query for objects classifies by "work package" will return objects independent of the second classification.

Another case: There are objects classified as "engineering work package" and objects classifies as "construction work package". In addition "engineering work package" and "construction work package" are declared subclasses of "work package". The query for objects classifies by "work package" will return nothing. You can make a special query - for objects classifies by subclasses of "work package". It will return all objects classified by subclasses.