PREFIX eccrev: <https://vocab.eccenca.com/revision/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

eccrev:Commit a rdfs:Class ;
  rdfs:label "Commit"@en ;
  rdfs:comment "Represents a modification of the datastore. A commit consists typically on a collection of :Revision (connected with a :hasRevision relationship"@en ;
  rdfs:subClassOf <http://www.w3.org/ns/prov#Activity> , <http://www.w3.org/ns/prov#InstantaneousEvent> .

eccrev:commitAuthor a rdf:Property ;
  rdfs:label "commit author"@en ;
  rdfs:comment "The author of the commit"@en ;
  rdfs:domain eccrev:Commit ;
  rdfs:range <https://w3id.org/linkml/Any> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#wasAssociatedWith> .

eccrev:previousCommit a rdf:Property ;
  rdfs:label "previous commit"@en ;
  rdfs:comment "Connects to the previous commit (or pair of commits in the case of a merge commit)"@en ;
  rdfs:domain eccrev:Commit ;
  rdfs:range eccrev:Commit ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#wasDerivedFrom> .

eccrev:hasRevision a rdf:Property ;
  rdfs:label "has revision"@en ;
  rdfs:comment "A named graph revision belonging to the commit"@en ;
  rdfs:domain eccrev:Commit ;
  rdfs:range eccrev:Revision ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#generated> .

eccrev:sha256 a rdf:Property ;
  rdfs:label "sha256 digest"@en ;
  rdfs:comment "A sha256 digest of a commit based on the RDF NC14 algorithm described in \"Signing RDF Graphs\" by Jeremy J. Carroll (DOI: 10.1007/F978-3-540-39718-2_24)."@en ;
  rdfs:seeAlso <http://link.springer.com/chapter/10.1007%2F978-3-540-39718-2_24> ;
  rdfs:domain eccrev:Commit ;
  rdfs:range xsd:base64Binary .

eccrev:commitMessage a rdf:Property ;
  rdfs:label "commit message"@en ;
  rdfs:comment "A message describing the commit"@en ;
  rdfs:domain eccrev:Commit ;
  rdfs:range xsd:string .

<http://www.w3.org/ns/prov#Entity> a rdfs:Class .

<http://www.w3.org/ns/prov#Activity> a rdfs:Class .

eccrev:Revision a rdfs:Class ;
  rdfs:label "Revision"@en ;
  rdfs:comment "Represents a modification on a specific named graph"@en ;
  rdfs:subClassOf <http://www.w3.org/ns/prov#Entity> .

eccrev:hasRevisionGraph a rdf:Property ;
  rdfs:label "has revision graph"@en ;
  rdfs:comment "The named graph the revision refers to"@en ;
  rdfs:domain eccrev:Revision ;
  rdfs:range <https://w3id.org/linkml/Any> ;
  rdfs:subPropertyOf <http://www.w3.org/ns/prov#wasRevisionOf> .

eccrev:deltaDelete a rdf:Property ;
  rdfs:label "delete delta"@en ;
  rdfs:comment "The IRI of the named graph containing the deleted triples of a revision (compared to its previous revision)"@en ;
  rdfs:domain eccrev:Revision ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#atTime> a rdf:Property ;
  rdfs:range xsd:date .

eccrev:deltaInsert a rdf:Property ;
  rdfs:label "insert delta"@en ;
  rdfs:comment "The IRI of the named graph containing the inserted triples of a revision (compared to its previous revision)"@en ;
  rdfs:domain eccrev:Revision ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://xmlns.com/foaf/0.1/Person> a rdfs:Class .

eccrev:Tag a rdfs:Class ;
  rdfs:label "Tag"@en ;
  rdfs:comment "Represents a tag"@en .

eccrev:referencesCommit a rdf:Property ;
  rdfs:label "references commit"@en ;
  rdfs:comment "The commit to which this branch or tag references"@en ;
  rdfs:range eccrev:Commit .

<http://purl.org/dc/terms/Agent> a rdfs:Class .

eccrev:Branch a rdfs:Class ;
  rdfs:label "Branch"@en ;
  rdfs:comment "Represents a branch"@en .

<http://xmlns.com/foaf/0.1/Organization> a rdfs:Class .

<http://www.w3.org/ns/prov#InstantaneousEvent> a rdfs:Class .

<https://w3id.org/linkml/Any> a rdfs:Class ;
  rdfs:comment "An unconstrained type or object"@en .

<http://www.w3.org/ns/prov#generated> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#wasAssociatedWith> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#wasDerivedFrom> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .

<http://www.w3.org/ns/prov#wasRevisionOf> a rdf:Property ;
  rdfs:range <https://w3id.org/linkml/Any> .
