Dear all,
i am new in SPARQL and need serious help.
I have developed an ontology. In this ontology there is a class
"Human_resource" with the following hierarchy:
*Human_resource -> Person -> Staff-> Non_clinicla_staff*
and there are 3 members for non clinical staff (*a,b,c*).
I have an object property*is_associated_with*. There is another class
with the name *Project* which has one member *Proj1*.
each non clinical staff has *name* and *familyname*, but only two of
them have the property *is_associated_with *the member class of Project
*Proj1*.
I need to get the name of these two members.
my ontology name is SNIK.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX snik: <http://imise/SNIK/#>
SELECT Distinct ?worker ?name
WHERE
{
?z rdfs:subClassOf <http://imise/SNIK/Human_ressource>.
?y rdfs:subClassOf <http://imise/SNIK/Staff>.
?worker a ?y.
}
This gives me only the 3 members as URI.
any help is appreciated
best regards
Iman