opengeospatial / ogc-geosparql

Public Repository for the OGC GeoSPARQL Standards Working Group
71 stars 19 forks source link

don't use BASE and empty prefix; precise ontology URL; use turtle `@prefix` syntax #474

Open VladimirAlexiev opened 6 months ago

VladimirAlexiev commented 6 months ago

The ontology https://opengeospatial.github.io/ogc-geosparql/geosparql11/geo.ttl has this preamble:

BASE <http://www.opengis.net/ont/geosparql>

PREFIX : <http://www.opengis.net/ont/geosparql#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sdo: <https://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX spec11: <http://www.opengis.net/spec/geosparql/1.1/specification.html#> # TODO: use PID IRI
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

The ontology URL is

<http://www.opengis.net/ont/geosparql> 
    a owl:Ontology ;
    dcterms:title "GeoSPARQL Ontology" ;

And then each term has rdfs:isDefinedBy : .

Suggestions:

In summary, I propose to change it as follows:

@prefix geo: <http://www.opengis.net/ont/geosparql#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix dcterms: <http://purl.org/dc/terms/>.
...

geo:
    a owl:Ontology ;
    dcterms:title "GeoSPARQL Ontology" ;
    vann: preferredNamespacePrefix "geo";
    vann:preferredNamespaceUri "http://www.opengis.net/ont/geosparql#";
...
<term> rdfs:isDefinedBy geo: ;
VladimirAlexiev commented 6 months ago

Note: if you change the ontolory URL to http://www.opengis.net/ont/geosparql#, the same change will be needed in https://opengeospatial.github.io/ogc-geosparql/geosparql11/profile.ttl

situx commented 6 months ago

Thanks for the suggestions. We will discuss it in our next meeting, which will be on January 10th, and then issue a pull request for the agreed-upon fixes.