Completed separating examples from html
authordgarijo
Wed, 25 Jul 2012 03:08:58 +0200
changeset 4248 f6201e4a5958
parent 4247 ad586d021111
child 4249 16b903ee9700
Completed separating examples from html
dc-note/files/DirectMappings.ttl
dc-note/files/Refinements.ttl
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-date/dateAccepted.ttl
dc-note/files/construct queries/entity-date/dateCopyRighted.ttl
dc-note/files/construct queries/entity-date/dateSubmitted.ttl
dc-note/files/construct queries/entity-date/issued.ttl
dc-note/files/construct queries/entity-date/modified.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/DirectMappings.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/DirectMappings.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -10,12 +10,15 @@
  dct:publisher       rdfs:subPropertyOf        prov:wasAttributedTo .
  dct:contributor     rdfs:subPropertyOf        prov:wasAttributedTo .
  dct:isVersionOf     rdfs:subPropertyOf        prov:wasDerivedFrom .
+ dct:hasVersion      rdfs:subPropertyOf        prov:hadDerivation .
+ dct:hasFormat       rdfs:subPropertyOf        prov:alternateOf .
  dct:isFormatOf      rdfs:subPropertyOf        prov:alternateOf .
- dct:replaces        rdfs:subPropertyOf        prov:tracedTo .
+ dct:replaces        rdfs:subPropertyOf        prov:wasInfluencedBby .
+ dct:isReplacedBy    rdfs:subPropertyOf        prov:influenced .
  dct:source          rdfs:subPropertyOf        prov:wasDerivedFrom .
  dct:type            owl:equivalentProperty    prov:type .
  
- prov:hadOriginalSource rdfs:subPropertyOf dct:source .
+ prov:hadPrimarySource rdfs:subPropertyOf dct:source .
  prov:wasRevisionOf     rdfs:subPropertyOf dct:isVersionOf .
  
  dct:created         rdfs:subPropertyOf    prov:generatedAtTime .
--- a/dc-note/files/Refinements.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/Refinements.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -7,6 +7,10 @@
  dcprov:PublicationActivity      rdfs:subClassOf     prov:Activity .
  dcprov:ContributionActivity     rdfs:subClassOf     prov:Activity .
  dcprov:CreationActivity         rdfs:subClassOf     prov:Activity, dcprov:ContributionActivity .
+ dcprov:ModificationActivity     rdfs:subClassOf     prov:Activity .
+ dcprov:AcceptanceActivity       rdfs:subClassOf     prov:Activity .
+ dcprov:CopyrightingActivity     rdfs:subClassOf     prov:Activity .
+ dcprov:SubmissionActivity       rdfs:subClassOf     prov:Activity .
  dcprov:PublisherRole            rdfs:subClassOf     prov:Role .
  dcprov:ContributorRole          rdfs:subClassOf     prov:Role . 
  dcprov:CreatorRole              rdfs:subClassOf     prov:Role, dcprov:ContributorRole .
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-agent/contributor.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-agent/contributor.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,24 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+ CONSTRUCT {
+    ?document a prov:Entity .
+		prov:wasAttributedTo ?agent .
+    ?agent a prov:Agent .
+    _:activity a prov:Activity, dcprov:ContributionActivity ;
+		prov:wasAssociatedWith ?agent ;
+		prov:qualifiedAssociation [ 
+			a prov:Association ;
+			prov:agent ?agent ;
+			prov:hadRole dcprov: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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-agent/creator.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,24 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+
+ CONSTRUCT {
+    ?document a prov:Entity .
+		prov:wasAttributedTo ?agent.
+    ?agent a prov:Agent .
+    _:activity a prov:Activity, dcprov:CreationActivity ;
+		prov:wasAssociatedWith ?agent;
+		prov:qualifiedAssociation [
+			a prov:Association;
+			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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-agent/publisher.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,23 @@
[email protected] prov: <http://www.w3.org/ns/prov#>.
[email protected] dct: <http://purl.org/dc/terms/>.
[email protected] dcprov: <to be determined>.
[email protected] owl: <http://www.w3.org/2002/07/owl#>.
[email protected] rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
+ CONSTRUCT {
+    ?document a prov:Entity .
+		prov:wasAttributedTo ?agent .
+    ?agent a prov:Agent .
+    _:activity a prov:Activity, dcprov:PublicationActivity ;
+		prov:wasAssociatedWith ?agent ;
+		prov:qualifiedAssociation [ 
+			a prov:Association ;
+			prov:agent ?agent ;
+			prov:hadRole dcprov:PublisherRole .
+		]
+    _:resulting_entity a prov: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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-agent/rightsHolder.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,12 @@
[email protected] prov: <http://www.w3.org/ns/prov#>.
[email protected] dct: <http://purl.org/dc/terms/>.
[email protected] dcprov: <to be determined>.
[email protected] owl: <http://www.w3.org/2002/07/owl#>.
[email protected] 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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-date/created.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,24 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+CONSTRUCT{
+ ?document           a                         prov:Entity .
+					
+ _:activity          a                         prov:Activity, dcprov:CreationActivity ;
+				 
+ # The “output”
+ _:created_entity    a                         prov:Entity ;
+                     prov:specializationOf     ?document ;
+                     prov:wasGeneratedBy       _:activity ;
+                     prov:wasGeneratedAtTime      ?date;
+                     prov:qualifiedGeneration  [ 
+                         a prov:Generation ;
+                         prov:atTime ?date  ;
+                         prov:activity _:activity . 
+                     ] .
+ } WHERE { 
+  ?document dct:created ?date.
+ }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-date/dateAccepted.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-date/dateAccepted.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,30 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+ CONSTRUCT{
+ ?document             a                         prov:Entity .
+ 
+ _:activity            a                         prov:Activity, dcprov:AcceptanceActivity ;
+                       prov:used                 _:used_entity .
+				  
+# The “input”
+ _:used_entity         a                         prov:Entity .
+                       prov:specializationOf     ?document .
+				  
+ # The “output”
+ _:accepted_entity     a                         prov:Entity ;
+                       prov:specializationOf     ?document ;
+                       prov:wasGeneratedBy       _:activity ;
+                       prov:wasGeneratedAtTime   ?date;
+                       prov:wasDerivedFrom       _:used_entity ;
+                       prov:qualifiedGeneration  [ 
+                              a prov:Generation ;
+                              prov:atTime ?date  ;
+                              prov:activity _:activity . 
+                       ] .   
+ } WHERE { 
+  ?document dct:dateAccepted ?date.
+ }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-date/dateCopyRighted.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-date/dateCopyRighted.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,30 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+ CONSTRUCT{
+ ?document                a                         prov:Entity .
+ 
+ _:activity               a                         prov:Activity, dcprov:CopyrightingActivity ;
+                          prov:used                 _:used_entity .
+				  
+# The “input”
+ _:used_entity            a                         prov:Entity .
+                          prov:specializationOf     ?document .
+				  
+ # The “output”
+ _:copyrighted_entity     a                         prov:Entity ;
+                          prov:specializationOf     ?document ;
+                          prov:wasGeneratedBy       _:activity ;
+                          prov:wasGeneratedAtTime   ?date;
+                          prov:wasDerivedFrom       _:used_entity ;
+                          prov:qualifiedGeneration  [ 
+                                 a prov:Generation ;
+                                 prov:atTime ?date  ;
+                                 prov:activity _:activity . 
+                          ] .   
+ } WHERE { 
+  ?document dct:dateCopyrighted ?date.
+ }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-date/dateSubmitted.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-date/dateSubmitted.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,30 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+  CONSTRUCT{
+ ?document               a                         prov:Entity .
+ 
+ _:activity              a                         prov:Activity, dcprov:SubmissionActivity ;
+                         prov:used                 _:used_entity .
+				  
+# The “input”
+ _:used_entity           a                         prov:Entity .
+                         prov:specializationOf     ?document .
+			  
+ # The “output”
+ _:submitted_entity      a                         prov:Entity ;
+                         prov:specializationOf     ?document ;
+                         prov:wasGeneratedBy       _:activity ;
+                         prov:wasGeneratedAtTime   ?date;
+                         prov:wasDerivedFrom       _:used_entity ;
+                         prov:qualifiedGeneration  [ 
+                                a prov:Generation ;
+                                prov:atTime ?date  ;
+                                prov:activity _:activity . 
+                         ] .   
+ } WHERE { 
+  ?document dct:dateSubmitted ?date.
+ }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-date/issued.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-date/issued.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,30 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+ CONSTRUCT{
+ ?document        a                         prov:Entity .
+ 
+ _:activity       a                         prov:Activity, dcprov:PublicationActivity ;
+                  prov:used                 _:used_entity .
+				  
+# The “input”
+ _:used_entity    a                         prov:Entity .
+                  prov:specializationOf     ?document .
+				  
+ # The “output”
+ _:iss_entity     a                         prov:Entity ;
+                  prov:specializationOf     ?document ;
+                  prov:wasGeneratedBy       _:activity ;
+                  prov:wasGeneratedAtTime   ?date;
+                  prov:wasDerivedFrom       _:used_entity ;
+                  prov:qualifiedGeneration  [ 
+                         a prov:Generation ;
+                         prov:atTime ?date  ;
+                         prov:activity _:activity . 
+                  ] .   
+ } WHERE { 
+  ?document dct:issued ?date.
+ }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-date/modified.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-date/modified.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,30 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ PREFIX owl: <http://www.w3.org/2002/07/owl#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ 
+ CONSTRUCT{
+ ?document             a                         prov:Entity .
+ 
+ _:activity            a                         prov:Activity, dcprov:ModificationActivity ;
+                       prov:used                 _:used_entity .
+				  
+# The “input”
+ _:used_entity         a                         prov:Entity .
+                       prov:specializationOf     ?document .
+				  
+ # The “output”
+ _:modified_entity     a                         prov:Entity ;
+                       prov:specializationOf     ?document ;
+                       prov:wasGeneratedBy       _:activity ;
+                       prov:wasGeneratedAtTime   ?date;
+                       prov:wasDerivedFrom       _:used_entity ;
+                       prov:qualifiedGeneration  [ 
+                              a prov:Generation ;
+                              prov:atTime ?date  ;
+                              prov:activity _:activity . 
+                       ] .   
+ } WHERE { 
+  ?document dct:modified ?date.
+ }
\ No newline at end of file
--- a/dc-note/files/construct queries/entity-entity/isFormatOf.ttl	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-entity/isFormatOf.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,14 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ 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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-entity/isReplacedBy.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,14 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ 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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-entity/isVersionOf.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,14 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ 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	Wed Jul 25 02:58:56 2012 +0200
+++ b/dc-note/files/construct queries/entity-entity/source.ttl	Wed Jul 25 03:08:58 2012 +0200
@@ -0,0 +1,13 @@
+ PREFIX prov: <http://www.w3.org/ns/prov#>
+ PREFIX dct: <http://purl.org/dc/terms/>
+ PREFIX dcprov: ???
+ 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