@prefix ex: <https://example.com/git/query/ordered-parents/> .
@prefix git: <https://ontology.inferal.com/modules/git/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:repository
    a git:Repository ;
    git:objectFormat "sha1" ;
    git:defaultObjectStore ex:store ;
    git:hasObject ex:tree, ex:first-parent, ex:second-parent, ex:merge .

ex:store
    a git:ObjectStore ;
    git:accessIRI "https://objects.example/project.git"^^xsd:anyURI .

ex:tree
    a git:Tree ;
    git:objectId "1111111111111111111111111111111111111111" .

ex:first-parent
    a git:Commit ;
    git:objectId "2222222222222222222222222222222222222222" ;
    git:commitTree ex:tree .

ex:second-parent
    a git:Commit ;
    git:objectId "3333333333333333333333333333333333333333" ;
    git:commitTree ex:tree .

ex:merge
    a git:Commit ;
    git:objectId "4444444444444444444444444444444444444444" ;
    git:commitTree ex:tree ;
    git:hasParent ex:merge-parent-0, ex:merge-parent-1 .

ex:merge-parent-0
    a git:CommitParent ;
    git:parentIndex "0"^^xsd:nonNegativeInteger ;
    git:parentCommit ex:first-parent .

ex:merge-parent-1
    a git:CommitParent ;
    git:parentIndex "1"^^xsd:nonNegativeInteger ;
    git:parentCommit ex:second-parent .
