@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-cited-papers-for-resource a grlc:grlc-query; dct:description "Given a resource, this query returns the papers it cites via any CiTO relation. For each citation it reports the CiTO relation used (linked to the CiTO property), the cited paper's title (linked to its DOI) and publication date (from the paper's bibliographic metadata nanopublication, if any), and a link to the citation nanopublication that asserts the citation. Citations whose cited paper has no bibliographic metadata nanopublication yet are still returned (with empty title and publication date)."; dct:license ; rdfs:label "Get cited papers for a resource"; grlc:endpoint ; grlc:sparql """prefix dct: prefix np: prefix npa: prefix npx: select distinct (?citoProp as ?cito_relation) ?cito_relation_label (?paper as ?title) ?title_label ?publication_date (?citeNp as ?np) (\"^\" as ?np_label) where { graph npa:graph { ?citeNp np:hasAssertion ?ca . } graph ?ca { ?_resource_iri ?citoProp ?paper . } filter(strstarts(str(?citoProp), \"http://purl.org/spar/cito/\")) bind(replace(str(?citoProp), \"http://purl.org/spar/cito/\", \"\") as ?cito_relation_label) filter not exists { graph npa:graph { ?cinv npx:invalidates ?citeNp . } } optional { graph npa:graph { ?descNp npx:introduces ?paper . ?descNp np:hasAssertion ?pa . } graph ?pa { ?paper dct:title ?title_label . } optional { graph ?pa { ?paper dct:date ?publication_date . } } graph npa:graph { ?descNp npa:hasValidSignatureForPublicKey ?pk . } filter not exists { graph npa:graph { ?inv npx:invalidates ?descNp ; npa:hasValidSignatureForPublicKey ?pk . } } } } order by ?cito_relation_label ?publication_date ?title_label""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-06-01T09:25:27Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-cited-papers-for-resource; npx:supersedes ; rdfs:label "Get cited papers for a resource"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "XRRmAOwx3sXf2qi66DHxSipLir44y73jFBRDi54M7h2B/CvN6ei44QucoDqlCn/YyfTLeTPn9FDnhgZYaQJZ0mqbhdQzPobrPwPf1A/BXk+4vdMs0f13DJZMnwS65okoZWYWLBwodc/tV/vGOKrUd94uEKNpcf3ona5vYgcAoC0="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }