https://w3id.org/np/RA99Qif3Q4dW9pNYbjhwIb4BFLUBuqY9v8ecdzNGZmrlw
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RA99Qif3Q4dW9pNYbjhwIb4BFLUBuqY9v8ecdzNGZmrlw> .
@prefix sub: <https://w3id.org/np/RA99Qif3Q4dW9pNYbjhwIb4BFLUBuqY9v8ecdzNGZmrlw/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
sub:Head {
this: a np:Nanopublication;
np:hasAssertion sub:assertion;
np:hasProvenance sub:provenance;
np:hasPublicationInfo sub:pubinfo .
}
sub:assertion {
sub:get-positions-for-person a grlc:grlc-query;
dct:description "Returns all positions held by a given person, with the title, the organization, the department or group, and the start and end years. A position with no end year is one that is still held.";
dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
rdfs:label "Get positions for person";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/type/6eec074d5a7a3e2550de0a5aa0cc266dcf4a8c5c39230c043996577785b0c2fb>;
grlc:sparql """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix wd: <http://www.wikidata.org/entity/>
prefix vivo: <http://vivoweb.org/ontology/core#>
select ?position ?position_label ?organization ?organization_label ?unit ?startYear ?endYear ?np (\"^\" as ?np_label) where {
graph npa:graph {
?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . }
?np np:hasAssertion ?a .
?np np:hasPublicationInfo ?pi .
?np npx:introduces ?position .
}
graph ?a {
?position a vivo:Position .
?_person_iri wd:P39 ?position .
optional { ?position rdfs:label ?position_label . }
optional { ?position wd:P108 ?organization . }
optional { ?position dct:description ?unit . }
optional { ?position wd:P580 ?startYear . }
optional { ?position wd:P582 ?endYear . }
}
# The organization label lives in pubinfo, not the assertion. OPTIONAL wraps
# GRAPH and not the reverse: `GRAPH ?x { OPTIONAL {...} }` drops the whole row.
optional { graph ?pi { ?organization rdfs:label ?organization_label . } }
} order by desc(?startYear) desc(?endYear)""" .
}
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-08-28T17:32:25Z"^^xsd:dateTime;
dct:creator orcid:0000-0002-1267-0234;
dct:license <https://creativecommons.org/licenses/by/4.0/>;
npx:introduces sub:get-positions-for-person;
rdfs:label "Get positions for person";
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
<https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
npx:hasSignature "Sd1OlE2e8POmXw0ODES1rWoN33/oNP0mcI/NoofoSD9b/F6/Xe456ByRP7mVv+VoWA+4AW2fHL/taohCZjbz7q2SF/xFnqTbQXssP7dMcZp13LtkLuNnX9QfeECioT2TM2F65zu9Aq+pHBXbkAGDK0ZOjKH6zxKU1UJCLr1QkKo=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}