Reputation:
So my question is simple: from this URI --
-- I want to extract specific things like --
rdfs:comment
rdfs:label
how to do that ?
Upvotes: 1
Views: 219
Reputation: 4001
Currently your query gets all properties, including rdfs:label
and rdfs:comment
. To get just those properties, substitute them for ?property
, e.g.:
{ <http://dbpedia.org/resource/Red_Dragon_(spacecraft)> rdfs:label ?label .
<http://dbpedia.org/resource/Red_Dragon_(spacecraft)> rdfs:comment ?comment .
}
Also, you may want to filter for language tags, e.g., FILTER (lang(?label) = "en)
.
Upvotes: 2