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

dpereira1
234
accept rate: 0%

2

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.

Lee

(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

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

Tags:

×1,241
×94
×16

Asked: 09 Jan '13, 01:03

Seen: 588 times

Last updated: 09 Jan '13, 06:58