sub:assertion {
sub:get-fair2adapt-nanopubs dct:description "Search for FAIR2Adapt in nt:hasLabelFromApi in the publication info graph" ;
dct:license <
http://www.apache.org/licenses/LICENSE-2.0> ;
a <
https://w3id.org/kpxl/grlc/grlc-query> ;
rdfs:label "Get FAIR2Adapt nanopubs" ;
<
https://w3id.org/kpxl/grlc/endpoint> <
https://w3id.org/np/l/nanopub-query-1.1/repo/full> ;
<
https://w3id.org/kpxl/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 nt: <https://w3id.org/np/o/ntemplate/>
select * where {
# Search for nanopublications
GRAPH npa:graph {
?np npa:hasValidSignatureForPublicKey ?pubkey .
FILTER NOT EXISTS { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }
?np dct:created ?date .
?np np:hasPublicationInfo ?pubinfo .
# Get publication info details
OPTIONAL { ?pubinfo dct:creator ?creator }
OPTIONAL { ?pubinfo <http://xmlns.com/foaf/0.1/name> ?creatorName }
OPTIONAL { ?pubinfo dct:license ?license }
OPTIONAL {
?pubinfo npx:hasSignature ?signature .
?pubinfo npx:signedBy ?creator .
}
}
# Search for FAIR2Adapt in nt:hasLabelFromApi in the publication info graph
GRAPH ?pubinfo {
?subject nt:hasLabelFromApi ?object .
FILTER (CONTAINS(LCASE(STR(?object)), \"fair2adapt\"))
}
} order by desc(?date)""" .
}