The following query (preceded by relevant prefixes of course)

posed on an ontology (.owl file) gives the object properties or data properties?

SELECT DISTINCT ?predicate
    WHERE { ?subject ?predicate ?object }

Thank you,

有帮助吗?

解决方案

It wholly depends on what the data in the triple store or file contains. Variable ?predicate will match the predicate of the triple, and that predicate might be a datatype property or an object property in OWL, or neither of those if you're not querying an OWL ontology. Likewise, ?object will match an RDF resource or a literal, again depending on what the data says.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top