SF.net SVN: gar:[23759] csw/mgar/pkg/tracker/trunk

slowfranklin at users.sourceforge.net slowfranklin at users.sourceforge.net
Wed Jun 4 17:56:41 CEST 2014


Revision: 23759
          http://sourceforge.net/p/gar/code/23759
Author:   slowfranklin
Date:     2014-06-04 15:56:40 +0000 (Wed, 04 Jun 2014)
Log Message:
-----------
tracker/trunk: Add nie:mimeType and nfo:fileName to the SQLite indexes

Modified Paths:
--------------
    csw/mgar/pkg/tracker/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/tracker/trunk/files/0001-Ontology-add-indexes-for-nie-mimeType-and-nfo-fileNa.patch

Modified: csw/mgar/pkg/tracker/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tracker/trunk/Makefile	2014-06-04 08:21:56 UTC (rev 23758)
+++ csw/mgar/pkg/tracker/trunk/Makefile	2014-06-04 15:56:40 UTC (rev 23759)
@@ -48,6 +48,8 @@
 PATCHFILES += 0003-Replace-uuid_unparse_lower-with-uuid_unparse.patch
 PATCHFILES += 0004-_XOPEN_SOURCE-hides-non-standard-stuff-__EXTENSIONS_.patch
 PATCHFILES += 0005-exempi-xmp.h-is-missing-a-stdbool.h-include.patch
+PATCHFILES += 0001-Ontology-add-indexes-for-nie-mimeType-and-nfo-fileNa.patch
+# will be in 1.0.2:
 PATCHFILES += 0001-libtracker-common-memory-limits-on-systems-with-larg.patch
 
 # Packages

Added: csw/mgar/pkg/tracker/trunk/files/0001-Ontology-add-indexes-for-nie-mimeType-and-nfo-fileNa.patch
===================================================================
--- csw/mgar/pkg/tracker/trunk/files/0001-Ontology-add-indexes-for-nie-mimeType-and-nfo-fileNa.patch	                        (rev 0)
+++ csw/mgar/pkg/tracker/trunk/files/0001-Ontology-add-indexes-for-nie-mimeType-and-nfo-fileNa.patch	2014-06-04 15:56:40 UTC (rev 23759)
@@ -0,0 +1,60 @@
+From 5111f7a9bbf0186b3b8375adcabf58853cce381d Mon Sep 17 00:00:00 2001
+From: Ralph Boehme <rb at sernet.de>
+Date: Wed, 4 Jun 2014 17:26:42 +0200
+Subject: [PATCH] Ontology: add indexes for nie:mimeType and nfo:fileName
+
+Enable indexing for "nie:mimeType" and "nfo:fileName", both are
+attributes that will be used in queries generated by Netatalk and
+Samba.
+---
+ data/ontologies/30-nie.ontology | 5 +++--
+ data/ontologies/33-nfo.ontology | 3 ++-
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/data/ontologies/30-nie.ontology b/data/ontologies/30-nie.ontology
+index 317a702..bfc6a87 100644
+--- a/data/ontologies/30-nie.ontology
++++ b/data/ontologies/30-nie.ontology
+@@ -10,7 +10,7 @@
+ 
+ nie: a tracker:Namespace, tracker:Ontology ;
+ 	tracker:prefix "nie" ;
+-	nao:lastModified "2011-02-08T16:00:00Z" .
++	nao:lastModified "2014-06-03T13:06:00Z" .
+ 
+ nie:DataObject a rdfs:Class ;
+ 	rdfs:label "Data Object" ;
+@@ -73,7 +73,8 @@ nie:mimeType a rdf:Property ;
+ 	rdfs:comment "File Mime Type" ;
+ 	nrl:maxCardinality 1 ;
+ 	rdfs:domain nie:InformationElement ;
+-	rdfs:range xsd:string .
++	rdfs:range xsd:string ;
++	tracker:indexed true .
+ 
+ nie:byteSize a rdf:Property ;
+ 	rdfs:label "Size" ;
+diff --git a/data/ontologies/33-nfo.ontology b/data/ontologies/33-nfo.ontology
+index ac4155f..0c157fe 100644
+--- a/data/ontologies/33-nfo.ontology
++++ b/data/ontologies/33-nfo.ontology
+@@ -12,7 +12,7 @@
+ 
+ nfo: a tracker:Namespace, tracker:Ontology ;
+ 	tracker:prefix "nfo" ;
+-	nao:lastModified "2014-01-03T02:14:35Z" .
++	nao:lastModified "2014-06-03T13:05:00Z" .
+ 
+ nfo:Document a rdfs:Class ;
+ 	rdfs:label "Document" ;
+@@ -500,6 +500,7 @@ nfo:fileName a rdf:Property ;
+ 	nrl:maxCardinality 1 ;
+ 	rdfs:domain nfo:FileDataObject ;
+ 	rdfs:range xsd:string ;
++	tracker:indexed true ;
+ 	tracker:fulltextIndexed true ;
+ 	tracker:weight 7 .
+ 
+-- 
+1.9.3
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list