#+ summary: Autocomplete lookup for FAIR Supporting Resources #+ endpoint: https://query.petapico.org/repo/text #+ method: GET prefix rdfs: prefix np: prefix npa: prefix npx: prefix xsd: prefix dct: prefix fip: prefix search: select distinct ?thing ?label ?description ?np ?date ?pubkey where { graph npa:graph { ?np rdfs:label ?label . optional { ?np dct:description ?description } ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:created ?date . { ?np npx:introduces ?thing } union { ?np npx:describes ?thing } filter(str(?date) > "2022") filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np npx:hasNanopubType ?type . values ?type { fip:Data-usage-license fip:Metadata-preservation-policy fip:Persistency-Policy fip:Crosswalk fip:Editor fip:FAIR-Representation-Service fip:Authentication-and-authorization-service fip:Provenance-Tracking-Service fip:Validation-Service fip:Web-API fip:Identifier-service fip:FAIR-Supporting-Software fip:Registry fip:Communication-protocol fip:Knowledge-representation-language fip:Metadata-schema fip:Metadata-data-linking-schema fip:Provenance-model fip:Structured-vocabulary fip:Semantic-model } filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } } { ?np search:matches [ search:query ?_searchterm ; search:property rdfs:label ] . } union { ?np search:matches [ search:query ?_searchterm ; search:property dct:description ] . } } limit 10