How do I output/list all predicates of an RDF Store, using SPARQL?

(just want a list with the predicates, nothing else)

asked 16 Nov '09, 11:01

Samuel%20Lampa's gravatar image

Samuel Lampa
698311
accept rate: 33%


Oh, as is so typical, asking the question made me figure it out myself... Anyway, in case it can help someone else:

SELECT distinct ?predicate
WHERE {
  ?x ?predicate ?y.
}
permanent link

answered 16 Nov '09, 11:08

Samuel%20Lampa's gravatar image

Samuel Lampa
698311
accept rate: 33%

I've put together a list of similar queries here: http://code.google.com/p/void-impl/wiki/SPARQLQueriesForStatistics

permanent link

answered 22 Nov '09, 10:05

kwijibo's gravatar image

kwijibo
33626
accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,295
×877
×206

question asked: 16 Nov '09, 11:01

question was seen: 5,193 times

last updated: 22 Nov '09, 10:05