SPARQL query doesn't give any results

Tum

I'm trying to run a SPARQL query on a local ontology using Fuseki, but I'm unable to get any results. My ontology contains a list of countries like this:

###  http://localhost:2020/country/6

<http://localhost:2020/country/6> rdf:type <http://localhost:2020/vocab/country> , owl:NamedIndividual ;
rdfs:label "country #6" ;
<http://localhost:2020/vocab/country_id> 6 ;
<http://localhost:2020/vocab/country_name_nl> "Nederland" ;                              
<http://localhost:2020/vocab/country_code> "nl" .

And properties are like this one:

###  http://localhost:2020/vocab/country_code

<http://localhost:2020/vocab/country_code> rdfs:label "country code" .

The test query I'm trying to run is:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?name WHERE {?name rdfs:type <http://localhost:2020/vocab/country>} LIMIT 50

Why doesn't this give me a list of countries? I'm getting an empty "name" column instead

Tum

Silly mistake, 'type' is rdf and not rdfs... Works like a charm now!

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?name WHERE {?name rdf:type <http://localhost:2020/vocab/country>} LIMIT 50

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why doesn't this Google AppEngine Search API query find any results?

From Dev

Grunt doesn't give any output [Ubuntu]

From Dev

Different SPARQL query engines give differing results for DESCRIBE Query

From Dev

Why is this SPARQL query not returning any results?

From Dev

Sparql query not showing results

From Dev

SQL query doesn't give the right result

From Dev

PHP - My dropdown array list doesn't appear to show any query results

From Dev

Elasticsearch term query does not give any results

From Dev

Reasoning doesn't give same results with *

From Dev

Mongodb query doesn't return any results

From Dev

get grouped results with sparql query

From Dev

Why my query is valid but doesn't show any results?

From Dev

IN operator doesn't return any results in PDO

From Dev

Why doesn't this method give any output?

From Dev

Laravel HasMany not returning any results - Doesn't even query?

From Dev

Hibernate Search/Lucene range query with enum field doesn't return any results

From Dev

SQL query doesn't give any results in PHP

From Dev

PDO ODBC query on linked tables doesn't give any results

From Dev

Can't get any results from this SPARQL query

From Dev

DbContext doesn't give any data

From Dev

Sparql query not showing results

From Dev

SQL query doesn't give the right result

From Dev

PHP - My dropdown array list doesn't appear to show any query results

From Dev

Parameterized MySQL query doesn't return any results

From Dev

jena sparql filter doen not give any output

From Dev

Simple SPARQL query does not return any results

From Dev

Term Query Doesn't give Proper Result

From Dev

Rank results of a sparql query

From Dev

select query doesn't give result in codeigniter?

Related Related

HotTag

Archive