@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://purl.org/vocab/changeset/schema#addition> a owl:ObjectProperty ;
    rdfs:label "addition"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:comment """
      By convention the subject of the triple being added should be the same as the subjectOfChange
    """@en ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range rdf:Statement ;
    rdfs:subPropertyOf <http://purl.org/vocab/changeset/schema#statement> ;
    skos:changeNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Added definitition and documentation" ] ;
    skos:definition "a triple to be added to the resource description"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made a sub-property of statement" ],
        [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:ObjectProperty" ] .

<http://purl.org/vocab/changeset/schema#precedingChangeSet> a owl:ObjectProperty ;
    rdfs:label "precedingChangeSet"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:comment """
      In systems that assume a closed world, the most recent ChangeSet for a particular resource description 
      can be discovered by looking for the ChangeSet that is not the value of a precedingChangeSet property. 
      Conversely, the earliest ChangeSet is the one that is not the subject of a precedingChangeSet property.
    """@en,
        """
      This property can be used to build a history of changes to a particular resource description. The first
      ChangeSet in the history will have no precedingChangeSet property. Each subsequent ChangeSet added
      to the history references the preceding one resulting in a singly-linked list of changes.  Care must be taken
      not to introduce cycles in the history.
    """@en ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    skos:changeNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Added definitition and documentation" ] ;
    skos:definition "the changeset that immediately precedes this one"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:ObjectProperty" ] .

<http://purl.org/vocab/changeset/schema#removal> a owl:ObjectProperty ;
    rdfs:label "removal"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:comment """
      By convention the subject of the triple being removed should be the same as the subjectOfChange
    """@en ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range rdf:Statement ;
    rdfs:subPropertyOf <http://purl.org/vocab/changeset/schema#statement> ;
    skos:changeNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Added definitition and documentation" ] ;
    skos:definition "a triple to be removed from the resource description"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:ObjectProperty" ],
        [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made a sub-property of statement" ] .

<http://purl.org/vocab/changeset/schema#changeReason> a owl:DatatypeProperty ;
    rdfs:label "changeReason"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range rdfs:Literal ;
    skos:definition "a  short, human readable description of the purpose for the changeset"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:DatatypeProperty" ] .

<http://purl.org/vocab/changeset/schema#createdDate> a owl:DatatypeProperty ;
    rdfs:label "createdDate"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:comment """
      The date should be in W3CDTF format
    """@en ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:subPropertyOf dc:date ;
    skos:definition "the date that the changeset was created"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:DatatypeProperty" ] .

<http://purl.org/vocab/changeset/schema#creatorName> a owl:DatatypeProperty ;
    rdfs:label "creatorName"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range rdfs:Literal ;
    skos:definition "the name of the entity responsible for creating the changeset"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:DatatypeProperty" ] .

<http://purl.org/vocab/changeset/schema#subjectOfChange> a owl:ObjectProperty ;
    rdfs:label "subjectOfChange"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range rdfs:Resource ;
    skos:changeNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Added definitition and documentation" ] ;
    skos:definition "the resource to which this set of changes applies"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Made owl:ObjectProperty" ] .

<http://vocab.org/changeset/changesets-example-20060321.html> dcterms:title "A Simple ChangeSet" .

<http://vocab.org/changeset/changesets-example2-20060321.html> dcterms:title "Linked ChangeSets" .

<http://vocab.org/changeset/changesets-example3-20060321.html> dcterms:title "Implementing Undo With ChangeSets" .

<http://purl.org/vocab/changeset/schema#statement> a owl:ObjectProperty ;
    rdfs:label "statement"@en ;
    dcterms:issued "2006-03-21" ;
    rdfs:domain <http://purl.org/vocab/changeset/schema#ChangeSet> ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:range rdf:Statement ;
    skos:definition "a triple included in this set of changes"@en .

<http://iandavis.com/id/me> a foaf:Person ;
    foaf:name "Ian Davis" .

<http://purl.org/vocab/changeset/schema> a owl:Ontology ;
    dcterms:creator <http://iandavis.com/id/me>,
        "Sam Tunnicliffe" ;
    dcterms:date "2006-03-21" ;
    dcterms:identifier "http://purl.org/vocab/changeset/schema-20060321" ;
    dcterms:isVersionOf <http://purl.org/vocab/changeset/schema#> ;
    dcterms:issued "2005-12-14" ;
    dcterms:replaces <http://purl.org/vocab/changeset/schema-20051214> ;
    dcterms:rights "Copyright © 2005 Talis Information Ltd." ;
    dcterms:title "Changeset"@en ;
    vann:example <http://vocab.org/changeset/changesets-example-20060321.html>,
        <http://vocab.org/changeset/changesets-example2-20060321.html>,
        <http://vocab.org/changeset/changesets-example3-20060321.html> ;
    vann:preferredNamespacePrefix "cs" ;
    vann:preferredNamespaceUri "http://purl.org/vocab/changeset/schema#" ;
    rdfs:comment """
      The vocabulary introduces the notion of a ChangeSet which encapsulates the delta between two versions of a 
      resource description. In this context a resource description is the set of triples that in some way comprise a 
      description of a resource. The delta is represented by two sets of triples: additions and removals. A ChangeSet can be used to 
      modify a resource description by first removing all triples from the description that are in the removals set and
      adding the triples in the additions set.
    """@en,
        """
      This vocabulary defines a set of terms for describing changes to resource descriptions.
    """@en ;
    skos:changeNote [ rdfs:label "Improved documentation"@en ;
            dcterms:creator <http://iandavis.com/id/me> ;
            dcterms:date "2006-03-21" ],
        [ rdfs:label "Fixed invalid RDF"@en ;
            dcterms:creator <http://iandavis.com/id/me> ;
            dcterms:date "2006-06-23" ] ;
    skos:historyNote [ rdfs:label "Updated dublin core properties to new namespace"@en ;
            dcterms:creator <http://iandavis.com/id/me> ;
            dcterms:date "2009-05-18" ],
        [ rdfs:label "Introduced statement property"@en ;
            dcterms:creator <http://iandavis.com/id/me> ;
            dcterms:date "2006-03-21" ] .

<http://purl.org/vocab/changeset/schema#ChangeSet> a owl:Class ;
    rdfs:label "ChangeSet"@en ;
    dcterms:issued "2005-12-14" ;
    rdfs:isDefinedBy <http://purl.org/vocab/changeset/schema> ;
    rdfs:subClassOf [ a owl:Class ;
            owl:intersectionOf ( [ a owl:Restriction ;
                        owl:minCardinality "1"^^xsd:nonNegativeInteger ;
                        owl:onProperty <http://purl.org/vocab/changeset/schema#statement> ] [ a owl:Restriction ;
                        owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
                        owl:onProperty <http://purl.org/vocab/changeset/schema#previousChangeSet> ] [ a owl:Restriction ;
                        owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
                        owl:onProperty <http://purl.org/vocab/changeset/schema#subjectOfChange> ] [ a owl:Restriction ;
                        owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
                        owl:onProperty <http://purl.org/vocab/changeset/schema#createdDate> ] [ a owl:Restriction ;
                        owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
                        owl:onProperty <http://purl.org/vocab/changeset/schema#creatorName> ] [ a owl:Restriction ;
                        owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
                        owl:onProperty <http://purl.org/vocab/changeset/schema#changeReason> ] ) ] ;
    skos:changeNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Improved documentation" ] ;
    skos:definition "The encapsulation of a delta between two versions of a resource description"@en ;
    skos:historyNote [ dcterms:creator "Ian Davis" ;
            dcterms:date "2006-03-21" ;
            rdf:value "Added property cardinality restrictions" ] .

