@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 citation type used (the CiTO property, with a human-readable label), 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 ?citation_type) ?citation_type_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(lcase(replace(replace(str(?citoProp), \"http://purl.org/spar/cito/\", \"\"), \"([a-z])([A-Z])\", \"$1 $2\")) as ?citation_type_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 ?citation_type_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-02T08:32:12Z"^^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 "JDVUavVg52kb29hVLHvTWODtSmpi7VWYYjnhwENbZrQGFfjcGW2HuN//t6+9gDVMfrQli3n+P7eqKO+idPybEi4bfzQvqjMhXIYRWfQfMl8t39bL9B09OVpAEcJBHhpoaqJyPUuhva491dGlxjARDEDIKkRj7dBNhVUYIK/4nZs="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }