I got this page http://dbpedia.org/page/Category:Art_genres on dbpedia and I wanna query and get the results for skos:broader and dcterms:subject.

Why can't I search for:

SELECT ?e
WHERE
{
      ?e rdfs:label "Art genres".
      ?d dcterms:subject ?e
}

asked 28 Jan '13, 15:11

Harelix's gravatar image

Harelix
132
accept rate: 0%

edited 28 Jan '13, 17:10

Jeen%20Broekstra's gravatar image

Jeen Broekstra ♦
11.5k412


I think there is a missing language tag for the label literal. Should work with

SELECT * WHERE { 
?s rdfs:label "Art genres"@en. 
?d dcterms:subject ?s}
You can see the result here:Click

By the way, if I change the variable ?d to ?x the result is empty: Click. Funny bug...

permanent link

answered 28 Jan '13, 15:33

AKSWMember's gravatar image

AKSWMember
1.4k38
accept rate: 25%

because there is a language annotation for label.

SELECT ?e WHERE { ?e rdfs:label "Art genres"@en. ?d dcterms:subject ?e }

permanent link

answered 28 Jan '13, 15:34

%C3%87a%C4%9Fda%C5%9F%20Ol's gravatar image

Çağdaş Ol
18318
accept rate: 0%

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,284
×271

question asked: 28 Jan '13, 15:11

question was seen: 980 times

last updated: 28 Jan '13, 17:10