Skip to content

Instantly share code, notes, and snippets.

@thewilkybarkid
Created May 25, 2021 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thewilkybarkid/e55deb877eea685fd54ee27277e74bc7 to your computer and use it in GitHub Desktop.
Save thewilkybarkid/e55deb877eea685fd54ee27277e74bc7 to your computer and use it in GitHub Desktop.
An attempt at describing DocMaps example 2 using the SPAR Ontologies
@base <http://localhost/> .
@prefix cito: <http://purl.org/spar/cito/> .
@prefix fabio: <http://purl.org/spar/fabio/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix frbr: <http://purl.org/vocab/frbr/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix part: <http://www.ontologydesignpatterns.org/cp/owl/participation.owl#> .
@prefix prism: <http://prismstandard.org/namespaces/basic/2.0/> .
@prefix pro: <http://purl.org/spar/pro/> .
@prefix pso: <http://purl.org/spar/pso/> .
@prefix pwo: <http://purl.org/spar/pwo/> .
@prefix taskex: <http://www.ontologydesignpatterns.org/cp/owl/taskexecution.owl#> .
@prefix ti: <http://www.ontologydesignpatterns.org/cp/owl/timeinterval.owl#> .
@prefix tisit: <http://www.ontologydesignpatterns.org/cp/owl/timeindexedsituation.owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# The preprint itself
<preprint/123>
a fabio:Preprint ;
prism:doi "preprint/123" ;
frbr:realizationOf [ a fabio:ResearchPaper ] ;
.
# The published review of the preprint
<public-review>
a fabio:ReviewArticle ;
prism:doi "review/123" ;
frbr:realizationOf [
a fabio:Review ;
cito:reviews <preprint/123> ;
] ;
pro:isDocumentContextFor <public-review-person-1> , <public-review-person-2> , <public-review-person-3> ;
.
<public-review-person-1>
a pro:RoleInTime ;
pro:isHeldBy [
a foaf:Person ;
foaf:givenName "Tricia" ;
foaf:familyName "McMillan" ;
owl:sameAs <tricia-mcmillan> ;
] ;
pro:withRole pro:editor ;
.
<public-review-person-2>
a pro:RoleInTime ;
pro:isHeldBy [
a foaf:Person ;
foaf:givenName "Zaphod" ;
foaf:familyName "Beeblebrox" ;
owl:sameAs <zaphod-beeblebrox> ; # Allows the name to be different, i.e. it's the name used for publication
] ;
pro:withRole pro:peer-reviewer ;
.
<public-review-person-3>
a pro:RoleInTime ;
pro:isHeldBy [
a foaf:Person ;
foaf:givenName "Arthur" ;
foaf:familyName "Dent" ;
owl:sameAs <arthur-dent> ;
] ;
pro:withRole pro:peer-reviewer
.
# The published author response
<author-response>
a fabio:Letter ;
prism:doi "response/123" ;
frbr:realizationOf [
a fabio:Reply ;
cito:repliesTo <public-review>
] ;
.
#
# The process that it went through
#
# Step 1: Submission
<submission-step>
a pwo:Step ;
taskex:isExecutedIn <submission-action> ;
pwo:needs <preprint/123> ;
pwo:produces <submitted-status> ; # TODO should this cover the suggested reviewer?
pwo:hasNextStep <review-step> ;
.
<submission-action>
a pwo:Action ;
tisit:atTime [
a ti:TimeInterval ;
ti:hasIntervalDate "2020-06-15"^^xsd:date ;
] ;
part:hasParticipant <preprint/123> ;
.
<submitted-status>
a pso:StatusInTime ;
pso:isStatusHeldBy <preprint/123> ;
pso:isAcquiredAsConsequenceOf <submission-action> ;
pso:withStatus pso:submitted ;
.
# Step 2: Review
<review-step>
a pwo:Step ;
taskex:isExecutedIn <review-action> ;
pwo:needs <preprint/123> , <submitted-status> ;
pwo:produces <under-review-status> , <review-1> , <review-2> ;
pwo:hasPreviousStep <submission-step> ;
pwo:hasNextStep <decision-step> ;
.
<review-action>
a pwo:Action ;
part:hasParticipant <zaphod-beeblebrox> , <arthur-dent> , <preprint/123> ; # How to describe <ford-prefect>, who presumably is asked to review but doesn't?
.
<under-review-status>
a pso:StatusInTime ;
pso:isStatusHeldBy <preprint/123> ;
pso:withStatus pso:under-review ;
.
<review-1>
a fabio:Comment ;
cito:reviews <preprint/123> ;
frbr:realizer <zaphod-beeblebrox> ;
frbr:realizationOf [ a fabio:Review ] ;
.
<review-2>
a fabio:Comment ;
cito:reviews <preprint/123> ;
frbr:realizer <arthur-dent> ;
frbr:realizationOf [ a fabio:Review ] ;
.
# Step 3: Decision
<decision-step>
a pwo:Step ;
taskex:isExecutedIn <review-action> ;
pwo:needs <under-review-status> , <review-1> , <review-2> , <preprint/123> ;
pwo:produces <reviewed-status> , <public-review> ;
pwo:hasPreviousStep <review-step> ;
.
<decision-action>
a pwo:Action ;
tisit:atTime [
a ti:TimeInterval ;
ti:hasIntervalDate "2020-07-20"^^xsd:date ;
] ;
part:hasParticipant <tricia-mcmillan> , <review-1> , <review-2> , <preprint/123> ;
.
<reviewed-status>
a pso:StatusInTime ;
pso:isStatusHeldBy <preprint/123> ;
pso:withStatus pso:peer-reviewed ;
.
#
# People involved
#
<tricia-mcmillan>
a frbr:Person ;
.
<zaphod-beeblebrox>
a frbr:Person ;
.
<arthur-dent>
a frbr:Person ;
.
<ford-prefect>
a frbr:Person ;
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment