Updated construct queries
authordgarijo
Mon, 08 Oct 2012 23:05:44 +0200
changeset 4511 00cef20ce18a
parent 4510 d77aa368ddfa
child 4512 f7844e3de04b
Updated construct queries
dc-note/files/construct queries/entity-agent/contributor.ttl
dc-note/files/construct queries/entity-agent/creator.ttl
dc-note/files/construct queries/entity-agent/publisher.ttl
dc-note/files/construct queries/entity-agent/rightsHolder.ttl
dc-note/files/construct queries/entity-date/created.ttl
dc-note/files/construct queries/entity-entity/isFormatOf.ttl
dc-note/files/construct queries/entity-entity/isReplacedBy.ttl
dc-note/files/construct queries/entity-entity/isVersionOf.ttl
dc-note/files/construct queries/entity-entity/source.ttl
--- a/dc-note/files/construct queries/entity-agent/contributor.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ b/dc-note/files/construct queries/entity-agent/contributor.ttl	Mon Oct 08 23:05:44 2012 +0200
@@ -4,20 +4,24 @@
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
  
  CONSTRUCT {
-    ?document a prov:Entity .
+    ?document a prov:Entity ;
 		prov:wasAttributedTo ?agent .
+		
     ?agent a prov:Agent .
+		
     _:activity a prov:Activity, prov:ContributionActivity ;
 		prov:wasAssociatedWith ?agent ;
 		prov:qualifiedAssociation [ 
 			a prov:Association ;
 			prov:agent ?agent ;
 			prov:hadRole prov:ContributorRole .
-		]
+		].
+		
     _:resulting_entity a prov:Entity ;
 		prov:specializationOf ?document ;
 		prov:wasGeneratedBy _:activity ;
 		prov:wasAttributedTo ?agent .
+		
  } WHERE {
     ?document dct:contributor ?agent .
  }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-agent/creator.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ b/dc-note/files/construct queries/entity-agent/creator.ttl	Mon Oct 08 23:05:44 2012 +0200
@@ -5,9 +5,11 @@
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 
  CONSTRUCT {
-    ?document a prov:Entity .
+    ?document a prov:Entity ;
 		prov:wasAttributedTo ?agent.
+		
     ?agent a prov:Agent .
+	
     _:activity a prov:Activity, dcprov:CreationActivity ;
 		prov:wasAssociatedWith ?agent;
 		prov:qualifiedAssociation [
@@ -15,10 +17,12 @@
 			prov:agent ?agent;
 			prov:hadRole dcprov:CreatorRole .
 		].
+		
     _:resulting_entity a prov:Entity ;
 		prov:specializationOf ?document ;
 		prov:wasGeneratedBy _:activity ;
 		prov:wasAttributedTo ?agent.		
+		
  } WHERE {
     ?document dct:creator ?agent.
  }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-agent/publisher.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ b/dc-note/files/construct queries/entity-agent/publisher.ttl	Mon Oct 08 23:05:44 2012 +0200
@@ -3,20 +3,29 @@
 @prefix owl: <http://www.w3.org/2002/07/owl#>.
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
  CONSTRUCT {
-    ?document a prov:Entity .
+    ?document a prov:Entity ;
 		prov:wasAttributedTo ?agent .
+		
     ?agent a prov:Agent .
+	
+	_:used_entity a prov:Entity;
+		prov:specializationOf ?document.
+		
     _:activity a prov:Activity, prov:PublicationActivity ;
+		prov:used _:used_entity;
 		prov:wasAssociatedWith ?agent ;
 		prov:qualifiedAssociation [ 
 			a prov:Association ;
 			prov:agent ?agent ;
 			prov:hadRole prov:PublisherRole .
-		]
+		].
+		
     _:resulting_entity a prov:Entity ;
+		prov:wasDerivedFrom _:used_entity
 		prov:specializationOf ?document ;
 		prov:wasGeneratedBy _:activity ;
 		prov:wasAttributedTo ?agent .
+		
  } WHERE {
     ?document dct:publisher ?agent .
  }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-agent/rightsHolder.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-@prefix prov: <http://www.w3.org/ns/prov#>.
-@prefix dct: <http://purl.org/dc/terms/>.
-@prefix owl: <http://www.w3.org/2002/07/owl#>.
-@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
-CONSTRUCT {
-  ?document a                     prov:Entity .
-  ?agent    a                     prov:Agent .
-  ?document prov:wasAttributedTo  ?agent .
- } WHERE { 
-  ?document dct:rightsHolder      ?agent .
- }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-date/created.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ b/dc-note/files/construct queries/entity-date/created.ttl	Mon Oct 08 23:05:44 2012 +0200
@@ -12,7 +12,7 @@
  _:created_entity    a                         prov:Entity ;
                      prov:specializationOf     ?document ;
                      prov:wasGeneratedBy       _:activity ;
-                     prov:wasGeneratedAtTime      ?date;
+                     prov:wasGeneratedAtTime   ?date;
                      prov:qualifiedGeneration  [ 
                          a prov:Generation ;
                          prov:atTime ?date  ;
--- a/dc-note/files/construct queries/entity-entity/isFormatOf.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
- PREFIX prov: <http://www.w3.org/ns/prov#>
- PREFIX dct: <http://purl.org/dc/terms/>
- PREFIX owl: <http://www.w3.org/2002/07/owl#>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- 
- CONSTRUCT {
-    ?document1 a prov:Entity ;
-       prov:alternateOf ?document2.
-    ?document2 a prov:Entity .
- } WHERE {
-    OPTIONAL { ?document1 dct:isFormatof ?document2 . }
-    OPTIONAL { ?document2 dct:hasFormat ?document1 .}
- }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-entity/isReplacedBy.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
- PREFIX prov: <http://www.w3.org/ns/prov#>
- PREFIX dct: <http://purl.org/dc/terms/>
- PREFIX owl: <http://www.w3.org/2002/07/owl#>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- 
- CONSTRUCT {
-    ?document1 a prov:Entity ;
-       prov:wasInfluencedBy ?document2.
-    ?document2 a prov:Entity .
- } WHERE {
-    OPTIONAL { ?document1 dct:replaces ?document2 . }
-    OPTIONAL { ?document2 dct:isReplacedBy ?document1 .}
- }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-entity/isVersionOf.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
- PREFIX prov: <http://www.w3.org/ns/prov#>
- PREFIX dct: <http://purl.org/dc/terms/>
- PREFIX owl: <http://www.w3.org/2002/07/owl#>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- 
- CONSTRUCT {
-    ?document1 a prov:Entity ;
-       prov:wasDerivedFrom ?document2.
-    ?document2 a prov:Entity .
- } WHERE {
-    OPTIONAL { ?document1 dct:isVersionOf ?document2 . }
-    OPTIONAL { ?document2 dct:hasVersion ?document1 .}
- }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-entity/source.ttl	Mon Oct 08 13:22:40 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
- PREFIX prov: <http://www.w3.org/ns/prov#>
- PREFIX dct: <http://purl.org/dc/terms/>
- PREFIX owl: <http://www.w3.org/2002/07/owl#>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- 
- CONSTRUCT{
-   ?document1     a   prov:Entity ;
-                  prov:wasDerivedFrom    :subj2 .
-   ?document2     a   prov:Entity .
-  } WHERE { 
-   ?document1 dct:source ?document2.
-  }
\ No newline at end of file