i have an class X with rdfs:label Y

i want to select every object with the type X with X having the label Y

" WHERE {" +
        " ?a rdf:type ?c . "  +
        " ?c rdfs:label \"" + Y + "\" . " +
        " }";

for example with Y = "albuns" and ns:Album rdfs:label "albuns" . i want to select all objects with rdf:type ns:Album

i dont see the reason why this wont work.

asked 09 Jan '13, 01:03

dpereira1's gravatar image

accept rate: 0%


There are many reasons it might not work. Y might contain quotation marks. You might be conflating plain literals with xsd:string typed literals in an RDF 1.0 system. You might not be querying the right graphs / RDF dataset.

If you'd like a more helpful answer, please edit your question to include sample data (preferably in turtle) along with a complete query that is failing against that data.


(09 Jan '13, 01:48) lee lee's gravatar image
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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



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:


question asked: 09 Jan '13, 01:03

question was seen: 1,006 times

last updated: 09 Jan '13, 06:58