How to get object properties of specific class in SPARQL -


I have some mechanisms (campus.owl). Tree class (student, sport, lecturer) Students have joined the lecturer class using the property of "object" and the student category is included in the sports category with "isPlay" object property.

Problem

I'm using object assets and interpreters some SPARQL queries.

  PREFIX rdfs: & lt; Http: //www.w3.org/2000/01/rdf-schema#> PREFIX rdf: & lt; Http: //www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX my: & lt; Http: //www.semanticweb.org/ontologies/2010/5/Ontology1275975684120.owl#> Choose? Prop Hoffa {{Sahara ..........}}  

How should I proceed?

  SELECT? Prope Ho Where {? student? Prop? Lecturer? Student A & lt; Students & gt; ? Lecturer A & lt; Lecturer & gt; }  

I think that will do what you want.

If you want to get information related to the property, then you

  SELECT? Prop,? PP, OO WHERE {? Prop? Pp? Oo}. student? help? Lecturer Student & lt; Students & gt; ? Lecturer A & lt; Lecturer & gt; }  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -