[tracker/wip/carlosg/move-fts-prefix] ontologies: Move fts: prefix definition to base ontology
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/move-fts-prefix] ontologies: Move fts: prefix definition to base ontology
- Date: Tue, 27 Sep 2022 12:01:16 +0000 (UTC)
commit d1cb178202ddd5c521fb04a640d09343ab6de283
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Sep 27 13:39:56 2022 +0200
ontologies: Move fts: prefix definition to base ontology
This prefix is used in some of our base SPARQL API (e.g. fts:match
and the misc functions to deal with results), but the prefix is
currently defined in the Nepomuk ontology side.
This makes applications that want to use FTS with custom ontologies
either need to declare the prefix themselves, or help queries with
`PREFIX` syntax to add the missing stock prefix.
Move this prefix definition to the base ontology, so all databases
inherit the builtin fts: prefix and it can be used right away in
FTS queries.
src/ontologies/11-rdf.ontology | 6 +++++-
src/ontologies/nepomuk/90-tracker.ontology | 6 +-----
tests/core/subqueries/subqueries-minus-5.out | 1 +
3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/ontologies/11-rdf.ontology b/src/ontologies/11-rdf.ontology
index 275069fa0..3ce71f43d 100644
--- a/src/ontologies/11-rdf.ontology
+++ b/src/ontologies/11-rdf.ontology
@@ -1,4 +1,5 @@
@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+@prefix fts: <http://tracker.api.gnome.org/ontology/v3/fts#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@@ -6,7 +7,7 @@
rdf: a nrl:Namespace, nrl:Ontology ;
nrl:prefix "rdf" ;
- nrl:lastModified "2019-06-09T21:00:00Z" .
+ nrl:lastModified "2022-09-26T21:00:00Z" .
rdfs: a nrl:Namespace ;
nrl:prefix "rdfs" .
@@ -14,6 +15,9 @@ rdfs: a nrl:Namespace ;
tracker: a nrl:Namespace ;
nrl:prefix "tracker" .
+fts: a nrl:Namespace ;
+ nrl:prefix "fts" .
+
rdfs:Resource a rdfs:Class ;
rdfs:label "All Resources" ;
rdfs:comment "All resources" ;
diff --git a/src/ontologies/nepomuk/90-tracker.ontology b/src/ontologies/nepomuk/90-tracker.ontology
index b2ef73883..a9c63c8f5 100644
--- a/src/ontologies/nepomuk/90-tracker.ontology
+++ b/src/ontologies/nepomuk/90-tracker.ontology
@@ -1,4 +1,3 @@
-@prefix fts: <http://tracker.api.gnome.org/ontology/v3/fts#> .
@prefix nao: <http://tracker.api.gnome.org/ontology/v3/nao#> .
@prefix nie: <http://tracker.api.gnome.org/ontology/v3/nie#> .
@prefix nfo: <http://tracker.api.gnome.org/ontology/v3/nfo#> .
@@ -10,7 +9,7 @@
tracker: a nrl:Ontology ;
nrl:prefix "tracker" ;
- nrl:lastModified "2019-07-15T09:41:00Z" .
+ nrl:lastModified "2022-09-26T09:41:00Z" .
tracker:isDefaultTag a rdf:Property ;
rdfs:domain nao:Tag ;
@@ -46,9 +45,6 @@ tracker:available a rdf:Property ;
rdfs:domain tracker:IndexedFolder ;
rdfs:range xsd:boolean .
-fts: a nrl:Namespace ;
- nrl:prefix "fts" .
-
tracker:extractor-data-source a nie:DataSource ;
rdfs:label "Tracker extractor data source" .
diff --git a/tests/core/subqueries/subqueries-minus-5.out b/tests/core/subqueries/subqueries-minus-5.out
index 4eca2a7c0..6571d4c52 100644
--- a/tests/core/subqueries/subqueries-minus-5.out
+++ b/tests/core/subqueries/subqueries-minus-5.out
@@ -22,6 +22,7 @@
"http://purl.org/dc/elements/1.1/subject"
"http://purl.org/dc/elements/1.1/title"
"http://purl.org/dc/elements/1.1/type"
+"http://tracker.api.gnome.org/ontology/v3/fts#"
"http://tracker.api.gnome.org/ontology/v3/nrl#"
"http://tracker.api.gnome.org/ontology/v3/nrl#InverseFunctionalProperty"
"http://tracker.api.gnome.org/ontology/v3/nrl#Namespace"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]