[tracker/wip/carlosg/ontology-minor-updates: 6/9] ontologies: Drop nie:contentAccessed



commit 88166fefa28359f252d84cd33039b49a81da4acf
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 14 16:38:43 2020 +0200

    ontologies: Drop nie:contentAccessed
    
    This is a nepomuk extension used nowhere except tests. Given it's a
    tough pill for our miners too (some filesystems don't usually store
    atime for perfomance/wearing reasons, plus it cannot be easily
    monitored), just get rid of it.

 docs/reference/ontology/nie-introduction.xml | 12 +++---------
 src/ontologies/nepomuk/30-nie.ontology       |  7 -------
 tests/functional-tests/insertion.py          | 12 ++++++------
 3 files changed, 9 insertions(+), 22 deletions(-)
---
diff --git a/docs/reference/ontology/nie-introduction.xml b/docs/reference/ontology/nie-introduction.xml
index 63fcbcbdc..e369d943d 100644
--- a/docs/reference/ontology/nie-introduction.xml
+++ b/docs/reference/ontology/nie-introduction.xml
@@ -101,17 +101,11 @@ its album).
   </varlistentry>
 
   <varlistentry>
-    <term><link linkend="nie-InformationElement.nie-contentAccessed">nie:contentAccessed</link></term>
+    <term><link linkend="nie-DataObject.nie-lastRefreshed">nie:lastRefreshed</link></term>
     <listitem>
-      <para>For resources coming from the filesystem, this is the usual access time to the file. For other  
kind of resources (online or virtual), the application accessing it should update its value.</para>
+      <para>.</para>
     </listitem>
-    </varlistentry>
-    <varlistentry>
-      <term><link linkend="nie-DataObject.nie-lastRefreshed">nie:lastRefreshed</link></term>
-      <listitem>
-       <para>.</para>
-      </listitem>
-    </varlistentry>
+  </varlistentry>
 </variablelist>
 </sect3>
 </sect2>
diff --git a/src/ontologies/nepomuk/30-nie.ontology b/src/ontologies/nepomuk/30-nie.ontology
index d769b26ed..cce425215 100644
--- a/src/ontologies/nepomuk/30-nie.ontology
+++ b/src/ontologies/nepomuk/30-nie.ontology
@@ -198,13 +198,6 @@ nie:contentCreated a rdf:Property ;
        rdfs:range xsd:dateTime ;
        tracker:writeback true .
 
-# Addition to nepomuk
-nie:contentAccessed a rdf:Property ;
-       rdfs:subPropertyOf nie:informationElementDate ;
-       nrl:maxCardinality 1 ;
-       rdfs:domain nie:InformationElement ;
-       rdfs:range xsd:dateTime .
-
 nie:lastRefreshed a rdf:Property ;
        rdfs:comment "Date when information about this data object was retrieved (for the first time) or last 
refreshed from the data source. This property is important for metadata extraction applications that don't 
receive any notifications of changes in the data source and have to poll it regularly. This may lead to 
information becoming out of date. In these cases this property may be used to determine the age of data, 
which is an important element of it's dependability" ;
        rdfs:subPropertyOf dc:date ;
diff --git a/tests/functional-tests/insertion.py b/tests/functional-tests/insertion.py
index 56390dc48..8539ba46f 100644
--- a/tests/functional-tests/insertion.py
+++ b/tests/functional-tests/insertion.py
@@ -189,9 +189,9 @@ class TrackerStoreInsertionTests (fixtures.TrackerSparqlDirectTest):
                           <test://instance-1> nie:usageCounter ?v .
                         }
                         DELETE {
-                          <test://instance-1> nie:contentAccessed ?w .
+                          <test://instance-1> nie:contentLastModified ?w .
                         } WHERE {
-                          <test://instance-1> nie:contentAccessed ?w .
+                          <test://instance-1> nie:contentLastModified ?w .
                         }
                         """)
 
@@ -200,7 +200,7 @@ class TrackerStoreInsertionTests (fixtures.TrackerSparqlDirectTest):
                         INSERT {
                            <test://instance-1> a nmm:MusicPiece, nfo:FileDataObject;
                            nie:usageCounter '%d';
-                           nie:contentAccessed '2000-01-01T00:4%d:47Z' .
+                           nie:contentLastModified '2000-01-01T00:4%d:47Z' .
                         }""" % (i, i))
 
             # Query for the property values and verify whether the last change
@@ -209,7 +209,7 @@ class TrackerStoreInsertionTests (fixtures.TrackerSparqlDirectTest):
                           SELECT ?playcount ?date WHERE {
                              <test://instance-1> a nmm:MusicPiece ;
                                  nie:usageCounter ?playcount ;
-                                 nie:contentAccessed ?date.
+                                 nie:contentLastModified ?date.
                           }""")
 
             self.assertEqual(len(result), 1)
@@ -231,7 +231,7 @@ class TrackerStoreInsertionTests (fixtures.TrackerSparqlDirectTest):
                         INSERT OR REPLACE {
                            <test://instance-1> a nmm:MusicPiece, nfo:FileDataObject;
                            nie:usageCounter '%d';
-                           nie:contentAccessed '2000-01-01T00:4%d:47Z' .
+                           nie:contentLastModified '2000-01-01T00:4%d:47Z' .
                         }""" % (i, i))
 
             # Query for the property values and verify whether the last change
@@ -240,7 +240,7 @@ class TrackerStoreInsertionTests (fixtures.TrackerSparqlDirectTest):
                           SELECT ?playcount ?date WHERE {
                              <test://instance-1> a nmm:MusicPiece ;
                                  nie:usageCounter ?playcount ;
-                                 nie:contentAccessed ?date.
+                                 nie:contentLastModified ?date.
                           }""")
 
             self.assertEqual(len(result), 1)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]