@prefix dc: .
@prefix this: .
@prefix sub: .
@prefix np: .
@prefix nt: .
@prefix npx: .
@prefix xsd: .
@prefix rdfs: .
@prefix orcid: .
@prefix prov: .
@prefix foaf: .
sub:Head {
this: np:hasAssertion sub:assertion;
np:hasProvenance sub:provenance;
np:hasPublicationInfo sub:pubinfo;
a np:Nanopublication .
}
sub:assertion {
sub:get-services dc:description "This query returns all nanopub services announced in nanopublications.";
dc:license ;
a ;
rdfs:label "Get all nanopub services (simple view)";
;
"""prefix rdfs:
prefix dct:
prefix np:
prefix npa:
prefix npx:
select ?service ?service_label ?serviceType ?np where {
graph npa:graph {
?np npx:hasNanopubType npx:NanopubService .
?np npa:hasValidSignatureForPublicKeyHash ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
optional { ?np dct:created ?date . }
?np np:hasAssertion ?a .
}
graph ?a {
?service a npx:NanopubService .
?service a ?serviceType .
?service rdfs:label ?service_label .
filter(?serviceType != npx:NanopubService)
}
} order by ?service_label""" .
}
sub:provenance {
sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}
sub:pubinfo {
orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
this: dc:created "2025-12-02T11:06:37.703Z"^^xsd:dateTime;
dc:creator orcid:0000-0002-1267-0234;
dc:license ;
npx:embeds sub:get-services;
npx:wasCreatedAt ;
nt:wasCreatedFromProvenanceTemplate ;
nt:wasCreatedFromPubinfoTemplate ,
;
nt:wasCreatedFromTemplate .
sub:sig npx:hasAlgorithm "RSA";
npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD4Wj537OijfOWVtsHMznuXKISqBhtGDQZfdO6pbb4hg9EHMcUFGTLbWaPrP783PHv8HMAAPjvEkHLaOHMIknqhaIa5236lfBO3r+ljVdYBElBcLvROmwG+ZGtmPNZf7lMhI15xf5TfoaSa84AFRd5J2EXekK6PhaFQhRm1IpSYtwIDAQAB";
npx:hasSignature "1+7pR0E2R6q8iJ+5Pn+TXdMLaV14x+8Iw5JY3KTmok9xVmJJuOR2m+3qhRx8zOVzm0ctsBCJJK6wut8bCr0nhgHijRqB3DdDl22s4Tceh6FbkQWCpRsEFcY68tAx/6dCj59IR8Wvtz9gcsSbSeRibY+6hLKyphLRVmHty3nb2tg=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}