Part 9, Sparql query on inherited classes

Post Reply
Message
Author
OnnoPaap
Posts: 189
Joined: Sun Jan 22, 2012 9:14 pm

Part 9, Sparql query on inherited classes

#1 Post 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...?

vvagr
Posts: 282
Joined: Mon Feb 27, 2012 11:01 pm
Location: Moscow, Russia
Contact:

Re: Part 9, Sparql query on inherited classes

#2 Post 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.

Post Reply