Search code examples
sparqlvirtuosotriplestore

How to list all available predicates in Virtuoso?


I am a beginner in Virtuoso and sparql and my question is, how can I list all the available predicates in my triplestore?

For example, if my query is:

sparql 
select * {
<http://my.domain.com/catalog/element/item55> ?p ?o.
}

I get

p                                            | o
----------------------------------------------------------------
http://www.w3.org/2000/01/rdf-schema#label   | Item 55
http://my.domain.com/catalog#propertyX       | ABC 

How can I retrieve a list of all the predicates that are available in my triplestore?


Solution

  • This will list all predicates:

    SELECT DISTINCT ?p { ?s ?p ?o }