How to get a list of properties for a specific class? Consider the class dbpedia-owl:Person
. All instances of the Person
class have some properties prefixed with dbpprop:
. How can I get all the dbpprop:
properties that we may find for all the instance of the Person
class?
相关问题
- Creating a SPARQL parameterized query using append
- Getting list of persons using SPARQL dbpedia
- Getting list of persons using SPARQL dbpedia
- How can I optimize a SPARQL query that returns opt
- Calculate the depth of subclass in the OWL ontolog
相关文章
- The difference between blank nodes and variables i
- How to display alert box when no json value is giv
- How to turn a SPARQL/SPIN query/rule into an RDF s
- Meaning of owl:hasValue?
- boundary for arbitrary property path in SPARQL 1.1
- boundary for arbitrary property path in SPARQL 1.1
- sparql complete tree from subject
- Jena Fuseki assembler file + TDB + OWL reasoner
To get all transitive properties you can ask this query
The '+' in the 'rdfs:subClassOf' is a property path expression [1] that fetches all uperclasses of Person as well. These properties are also valid for Person.
Also note that the dbprop namespace is not recommended because the data is raw and not normalized to a datatype.
[1] http://www.w3.org/TR/2010/WD-sparql11-property-paths-20100126/
Disclosure: I am a DBpedia developer
The one that works is:
In this query you are asking for all the properties that have
dbpedia:Person
asrdfs:domain
. This query requires a schema definition to work and sometime datasets don't really follow perfectly the schemas. For those datasets you would try this other queryThis query looks at every instance of person binding every property that comes out of it. It is much harder than the first one, and in the dbpedia public instance you will get a time out. So you are better off with the first one if you want to use the public endpoint.