summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-09-27 13:39:56 +0200
committerCarlos Garnacho <carlosg@gnome.org>2022-09-27 14:01:01 +0200
commitd1cb178202ddd5c521fb04a640d09343ab6de283 (patch)
treed83f12811df80abae85f339b6b9b9a6657f5038c /src
parent8b6548af734c2f4d040ff3d6aef5bbf75d134d4c (diff)
downloadtracker-d1cb178202ddd5c521fb04a640d09343ab6de283.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/ontologies/11-rdf.ontology6
-rw-r--r--src/ontologies/nepomuk/90-tracker.ontology6
2 files changed, 6 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" .