I have created the following OWL in Protege and when I am executing the SPARQL in dbpedia.org/sparql it doesn't return anything.
@prefix : <http://www.wad.nistorandrei.com/ontology.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<http://www.wad.nistorandrei.com/ontology.owl> a owl:Ontology .
#
#
# #################################################################
# #
# # Object Properties
# #
# #################################################################
#
#
# http://www.wad.nistorandrei.com/ontology.owl#type
:type a owl:ObjectProperty ;
rdfs:isDefinedBy rdf:type ;
rdfs:label "type" .
#
#
#
# #################################################################
# #
# # Classes
# #
# #################################################################
#
#
# http://www.wad.nistorandrei.com/ontology.owl#Church
:Church a owl:Class ;
rdfs:subClassOf :Place .
#
# http://www.wad.nistorandrei.com/ontology.owl#Place
:Place a owl:Class .
#
# Generated by the OWL API (version 4.1.3.20151118-2017) https://github.com/owlcs/owlapi
This is the query I am trying to execute
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX ontology: <http://wad.nistorandrei.com/ontology.owl>
SELECT DISTINCT * WHERE {
?s a dbo:Place;
geo:lat ?lat;
geo:long ?lng;
ontology:type ?type;
rdfs:label ?label;
dcterms:subject ?sub;
dbo:abstract ?description;
dbo:thumbnail ?thumbnail .
FILTER( lang(?label) = "en" )
FILTER( lang(?description) = "en" ) . FILTER ( ( ?lng > 27.577898 && ?lng < 27.597898 && ?lat > 47.144996 && ?lat < 47.164996 ) ) }
ORDER BY ?s
If you change "ontology:type ?type;" to "rdf:type ?type" it will return the information I need.
What I am trying to achieve (if I am doing this wrong) is to map more types to one type. For example ontology:Church to **dbo:ReligiousBuilding or some other that is related to churches **.
The important thing is for the query that uses ontology:type to work.
Can anyone give me a hint?
Thank you.