Skip to content
Alpha: see what works today →
Menu

prov:wasGeneratedBy wasGeneratedBy

http://www.w3.org/ns/prov#wasGeneratedBy

from PROV-O

Type
owl:ObjectProperty
Domain
prov:Entity
Range
prov:Activity
Subproperty of
prov:wasInfluencedBy
Shapes

cascade:DocumentRoleAttributionShape checks the subject of any prov:wasGeneratedBy.

On the whole node: sparql [ a sh:SPARQLConstraint; message "A document's author and custodian, named by an association of the act that generated it, are each the object of its prov:wasAttributedTo: {?agent} is not."; severity sh:Violation; select

SELECT $this ?agent WHERE {
  $this <http://www.w3.org/ns/prov#wasGeneratedBy>/<http://www.w3.org/ns/prov#qualifiedAssociation> ?association .
  ?association <http://www.w3.org/ns/prov#agent> ?agent ;
                <http://www.w3.org/ns/prov#hadRole> ?role .
  FILTER (?role IN (<https://ns.cascadeprotocol.org/cascade#AuthorRole>, <https://ns.cascadeprotocol.org/cascade#CustodianRole>))
  FILTER NOT EXISTS { $this <http://www.w3.org/ns/prov#wasAttributedTo> ?agent }
}
]; sparql [ a sh:SPARQLConstraint; message "A document's prov:wasAttributedTo never names a party that only transmitted it: {?agent} does."; severity sh:Violation; select
SELECT $this ?agent WHERE {
  $this <http://www.w3.org/ns/prov#wasAttributedTo> ?agent .
  $this <http://www.w3.org/ns/prov#wasGeneratedBy>/<http://www.w3.org/ns/prov#qualifiedAssociation> ?association .
  ?association <http://www.w3.org/ns/prov#agent> ?agent ;
                <http://www.w3.org/ns/prov#hadRole> <https://ns.cascadeprotocol.org/cascade#TransmitterRole> .
  FILTER NOT EXISTS {
    $this <http://www.w3.org/ns/prov#wasGeneratedBy>/<http://www.w3.org/ns/prov#qualifiedAssociation> ?other .
    ?other <http://www.w3.org/ns/prov#agent> ?agent ;
           <http://www.w3.org/ns/prov#hadRole> ?role .
    FILTER (?role IN (<https://ns.cascadeprotocol.org/cascade#AuthorRole>, <https://ns.cascadeprotocol.org/cascade#CustodianRole>))
  }
}
]

Where it comes from and what uses it
Source
https://www.w3.org/ns/prov-o-20130430, http://www.w3.org/ns/prov-o#
License
https://www.w3.org/Consortium/Legal/copyright-documents
Queries
21 queries
Rules