Matches in Nanopublications for { ?s <https://w3id.org/kpxl/grlc/sparql> ?o ?g. }
- get-messages-about-ko2025lecture9 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 schema: <https://schema.org/> select ?text ?np ?user ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?text . ?a schema:about ?_SPACE_iri . } } order by desc(?date)" assertion.
- get-messages-about-space 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 schema: <https://schema.org/> select ?text ?np ?user ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?text . ?a schema:about ?_SPACE_multi_iri . } } order by desc(?date)" assertion.
- get-messages-about-space 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 schema: <https://schema.org/> select ?text ?np ?user ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?text . values ?_SPACE_multi_iri {} ?a schema:about ?_SPACE_multi_iri . } } order by desc(?date)" assertion.
- get-messages-about-space 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 schema: <https://schema.org/> select ?text ?np ?user ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?text . values ?_SPACE_multi_iri {} ?a schema:about ?_SPACE_multi_iri . } } order by desc(?date)" assertion.
- get-views-for-space 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 gen: <https://w3id.org/kpxl/gen/terms/> select ?query ?title ?np ?pubkey ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?view a gen:SpaceQueryView . ?view dct:title ?title . ?view gen:hasViewQuery ?query . values ?_space_multi_iri {} ?view gen:isViewForSpace ?_space_multi_iri . } } order by desc(?date)" assertion.
- get-messages-about-space 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 schema: <https://schema.org/> select ?text ?np ?user ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?a rdfs:label ?text . values ?_space_multi_iri {} ?a schema:about ?_space_multi_iri . } } order by desc(?date)" assertion.
- get-space-member-roles sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate (group_concat(?reg; separator=' ') as ?regularProperties) (group_concat(?inv; separator=' ') as ?inverseProperties) ?np ?pubkey ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?rel_a . } graph ?rel_a { values ?_space_multi_iri {} ?_space_multi_iri gen:hasRole ?role . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . optional { ?role gen:hasRoleAssignmentTemplate ?roleAssignmentTemplate } optional { ?role gen:hasRegularProperty ?reg } optional { ?role gen:hasInverseProperty ?inv } } } group by ?role ?roleLabel ?roleName ?roleTitle ?roleAssignmentTemplate ?np ?pubkey ?date order by desc(?date)" assertion.
- get-fair-communities sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix fip: <https://w3id.org/fair/fip/terms/> select distinct ?communityLabel ?community ?np where { graph npa:graph { <https://w3id.org/np/RA27Uhopq4MHZziL2lKXX-wTb1jz4KVLbHaupxyAcCt9Y> npa:hasValidSignatureForPublicKey ?curators_np_pk . ?latest_curators_np npa:hasValidSignatureForPublicKey ?curators_np_pk . filter not exists { ?latest_curators_npx npx:invalidates ?latest_curators_np ; npa:hasValidSignatureForPublicKey ?curators_np_pk . } ?latest_curators_np np:hasAssertion ?latest_curators_assertion . } graph npa:networkGraph { ?latest_curators_np (npx:supersedes)* <https://w3id.org/np/RA27Uhopq4MHZziL2lKXX-wTb1jz4KVLbHaupxyAcCt9Y> . filter not exists { ?latest_curators_npxx npx:supersedes ?latest_curators_np } } graph npa:graph { ?np rdfs:label ?communityLabel ; npa:hasValidSignatureForPublicKey ?pubkey ; dct:created ?date ; npx:hasNanopubType fip:FAIR-Implementation-Community ; npx:introduces ?community ; np:hasAssertion ?a . ?np dct:created ?date . filter(str(?date) > "2022") filter(strends(str(?date), "Z")) filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } } filter not exists { graph npa:graph { ?disapproval_np np:hasAssertion ?da ; npa:hasValidSignatureForPublicKey ?dpubkey . filter not exists { ?disapproval_npx npx:invalidates ?disapproval_np ; npa:hasValidSignatureForPublicKey ?dpubkey . } } graph ?latest_curators_assertion { ?qpubkeys npx:hasPublicKey ?dpubkey . } graph ?da { ?disapprover npx:disapprovesOf ?np . } } } order by ?communityLabel" assertion.
- get-classes-of-ontology-version sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?property ?label (?definition as ?description) (?termNp as ?np) where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?termNp . } graph npa:graph { } graph npa:graph { ?termNp dct:created ?date . ?termNp npx:introduces ?property . ?termNp np:hasAssertion ?termNpA . } graph ?termNpA { ?property a rdf:Property . optional { ?property rdfs:label ?label . } optional { ?property skos:definition ?definition . } } } order by ?label" assertion.
- get-chemicals-for-ontology 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/> select ?chemical ?chemical_label ?np where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?chemical . optional { ?np rdfs:label ?label } } values ?_ontology_multi_iri {} graph ?a { ?chemical rdfs:label ?chemical_label . ?chemical dct:isPartOf ?_ontology_multi_iri . } }" assertion.
- get-rocrate-list sparql "prefix schema: <http://schema.org/> 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/> select ?rocrate ?rocrate_label ?np ?date where { graph npa:graph { ?np npx:hasNanopubType npx:RoCrateNanopub . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?rocrate . ?np np:hasAssertion ?a . } graph ?a { ?rocrate schema:name ?rocrate_label . } } order by desc(?date)" assertion.
- get-classes-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select ?class ?label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Class . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?class . ?np np:hasAssertion ?a . } graph ?a { {{ ?class a owl:Class . #filter(bound(?foo)) filter(strstarts(str(?class), ?_ontologyNamespace)) } union { ?class a owl:Class . ?class dct:partOf ?_ontology_multi_iri . }} optional { ?class rdfs:label ?label . } optional { ?class skos:definition ?definition . } } } order by ?label" assertion.
- get-classes-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select ?class ?label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Class . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?class . ?np np:hasAssertion ?a . } graph ?a { {{ ?class a owl:Class . #filter(bound(?foo)) filter(strstarts(str(?class), ?__ontologyNamespace)) } union { ?class a owl:Class . ?class dct:partOf ?_ontology_multi_iri . }} optional { ?class rdfs:label ?label . } optional { ?class skos:definition ?definition . } } } order by ?label" assertion.
- get-classes-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select distinct ?class ?label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Class . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?class . ?np np:hasAssertion ?a . } graph ?a { {{ ?class a owl:Class . filter(strstarts(str(?class), ?__ontologyNamespace)) } union { ?class a owl:Class . ?class dct:partOf ?_ontology_multi_iri . }} optional { ?class rdfs:label ?label . } optional { ?class skos:definition ?definition . } } } order by ?label" assertion.
- get-db-searches-for-review 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 sl: <https://w3id.org/sciencelive/o/terms/> select ?dbsearch ?dbsearch_label ?dbUrl ?searchQuery ?retrievedRecordCount ?np ?creator ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np dct:created ?date . ?np npx:signedBy ?creator . ?np npx:introduces ?dbsearch . ?np np:hasAssertion ?a . } values ?_systematicReview_multi_iri {} graph ?a { ?dbsearch a sl:SystematicDatabaseSearch . ?dbsearch rdfs:label ?dbsearch_label . ?dbsearch dct:isPartOf ?_systematicReview_multi_iri . ?dbsearch sl:hasDatabaseUrl ?dbUrl . ?dbsearch sl:hasSearchQuery ?searchQuery . ?dbsearch sl:hasRetrievedRecordCount ?retrievedRecordCount . } }" assertion.
- get-search-exec-dataset 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 sl: <https://w3id.org/sciencelive/o/terms/> select ?dataset ?dataset_label ?datasetCreationDate ?screenedRecordCount ?fulltextScreenedRecordCount ?finalIncludedStudyCount ?np where { graph npa:graph { ?np npx:hasNanopubType sl:SearchExecutionDataset . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:signedBy ?creator . ?np npx:introduces ?dataset . ?np np:hasAssertion ?a . } values ?_systematicReview_multi_iri {} graph ?a { ?dataset a sl:SearchExecutionDataset . ?dataset dct:isPartOf ?_systematicReview_multi_iri . ?dataset rdfs:label ?dataset_label . ?dataset sl:hasScreenedRecordCount ?screenedRecordCount . ?dataset sl:hasFulltextScreenedRecordCount ?fulltextScreenedRecordCount . ?dataset sl:hasFinalIncludedStudyCount ?finalIncludedStudyCount . ?dataset dct:created ?datasetCreationDate . } }" assertion.
- get-studies-of-systematic-review 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 disco: <http://rdf-vocabulary.ddialliance.org/discovery#> prefix sl: <https://w3id.org/sciencelive/o/terms/> select ?study ?study_label ?np ?creator ?date where { graph npa:graph { ?np npx:hasNanopubType disco:Study . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?study . ?np npx:signedBy ?creator . } values ?_systematicReview_multi_iri {} graph ?a { ?study a disco:Study . ?study rdfs:label ?study_label . ?study dct:source ?source . ?_systematicReview_multi_iri sl:includesStudy ?study . } }" assertion.
- get-study-assessment-datasets 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 sl: <https://w3id.org/sciencelive/o/terms/> select ?studyAssessmentDataset ?studyAssessmentDataset_label ?np ?creator ?date where { graph npa:graph { ?np npx:hasNanopubType sl:StudyAssessmentDataset . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:signedBy ?creator . ?np npx:introduces ?studyAssessmentDataset . ?np np:hasAssertion ?a . optional { ?np rdfs:label ?studyAssessmentDataset_label } } values ?_systematicReview_multi_iri {} graph ?a { ?studyAssessmentDataset dct:isPartOf ?_systematicReview_multi_iri . } }" assertion.
- get-properties-of-ontology-ns sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select ?property ?property_label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType rdf:Property . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?property . ?np np:hasAssertion ?a . } graph ?a { {{ ?property a rdf:Property . filter(strstarts(str(?property), ?__ontologyNamespace)) } union { ?property a rdf:Property . ?property dct:partOf ?_ontology_multi_iri . }} optional { ?property rdfs:label ?property_label . } optional { ?property skos:definition ?definition . } } } order by ?property_label" assertion.
- get-all-space-membership-instances sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select (?__agent_multi_iri as ?agent) ?role ?roleName ?property ?inverse (?__space_multi_iri as ?space) where { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?__space_multi_iri gen:hasRole ?role . } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?__agent_multi_iri ?reg ?__space_multi_iri . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?__space_multi_iri ?inv ?__agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } } }" assertion.
- get-all-space-membership-instances sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select (?__agent_multi_iri as ?agent) ?role ?roleName ?property ?inverse (?__space_multi_iri as ?space) where { values ?__space_multi_iri {} values ?__agent_multi_iri {} graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?__space_multi_iri gen:hasRole ?role . } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?__agent_multi_iri ?reg ?__space_multi_iri . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?__space_multi_iri ?inv ?__agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } } }" assertion.
- get-all-space-membership-instances sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select (?__agent_multi_iri as ?agent) ?role ?roleName ?property ?inverse (?__space_multi_iri as ?space) where { values ?__space_multi_iri {} values ?__agent_multi_iri {} { { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?__space_multi_iri gen:hasRole ?role . } } union { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) } } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?__agent_multi_iri ?reg ?__space_multi_iri . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?__space_multi_iri ?inv ?__agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } } }" assertion.
- get-spaces-for-agent sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select ?space ?role (?roleName as ?role_label) (?link_np as ?np) ("source" as ?np_label) where { values ?_agent_multi_iri {} { { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?space gen:hasRole ?role . } } union { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) } } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?__agent_multi_iri ?reg ?space . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?space ?inv ?__agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } } }" assertion.
- get-spaces-for-agent sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select ?space ?role (?roleName as ?role_label) (?link_np as ?np) ("source" as ?np_label) where { values ?_agent_multi_iri {} { { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?space gen:hasRole ?role . } } union { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) } } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?_agent_multi_iri ?reg ?space . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?space ?inv ?_agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } } }" assertion.
- get-spaces-for-agent sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select distinct ?space ?role (?roleName as ?role_label) (?link_np as ?source) ("^" as ?np_label) where { values ?_agent_multi_iri {} { { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?space gen:hasRole ?role . } } union { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) } } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?_agent_multi_iri ?reg ?space . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?space ?inv ?_agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } ?link_np dct:created ?link_date . } } order by desc(?link_date)" assertion.
- get-spaces-for-agent sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select distinct ?space ?role (?roleName as ?role_label) (?link_np as ?source) ("^" as ?source_label) where { values ?_agent_multi_iri {} { { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?space gen:hasRole ?role . } } union { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) } } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?_agent_multi_iri ?reg ?space . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?space ?inv ?_agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } ?link_np dct:created ?link_date . } } order by desc(?link_date)" assertion.
- get-spaces-for-agent sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix owl: <http://www.w3.org/2002/07/owl#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> select distinct ?space ?role (?roleName as ?role_label) (?link_np as ?source) where { values ?_agent_multi_iri {} { { graph npa:graph { ?spaceRole_np npx:hasNanopubType gen:SpaceMemberRole . ?spaceRole_np npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . filter not exists { ?spaceRole_npx npx:invalidates ?spaceRole_np ; npa:hasValidSignatureForPublicKeyHash ?spaceRole_pubkey . } ?spaceRole_np np:hasAssertion ?spaceRole_a . } graph ?spaceRole_a { ?space gen:hasRole ?role . } } union { bind(<https://w3id.org/np/RA_eEJjQbxzSqYSwPzfjzOZi5sMPpUmHskFNsgJYSws8I/adminRole> as ?role) } } graph ?role_a { ?role a gen:SpaceMemberRole . ?role rdfs:label ?roleLabel . ?role dct:title ?roleTitle . ?role schema:name ?roleName . } graph npa:graph { ?role_np npx:embeds ?role . ?role_np np:hasAssertion ?role_a . } { { graph ?role_a { ?role gen:hasRegularProperty ?reg . } graph ?link_a { ?_agent_multi_iri ?reg ?space . } bind(?reg as ?property) bind(false as ?inverse) } union { graph ?role_a { ?role gen:hasInverseProperty ?inv . } graph ?link_a { ?space ?inv ?_agent_multi_iri . } bind(?inv as ?property) bind(true as ?inverse) } } graph npa:graph { ?link_np np:hasAssertion ?link_a . ?link_np npa:hasValidSignatureForPublicKeyHash ?link_pubkey . filter not exists { ?link_npx npx:invalidates ?link_np ; npa:hasValidSignatureForPublicKeyHash ?link_pubkey . } ?link_np dct:created ?link_date . } } order by desc(?link_date)" assertion.
- get-services 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/> 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" assertion.
- get-ontology-versions 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 owl: <http://www.w3.org/2002/07/owl#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?ontologyVersion ?ontologyVersion_label ?creator ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Ontology . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?ontologyVersion . ?np npx:signedBy ?creator . } graph ?a { ?ontologyVersion rdfs:label ?ontologyVersion_label . ?ontologyVersion dct:isVersionOf ?_ontology_multi_iri . ?ontologyVersion gen:hasContentIndex ?contentIndex . } } order by desc(?ontologyVersion)" assertion.
- get-properties-of-ontology-ns sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select distinct ?property ?property_label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType rdf:Property . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?property . ?np np:hasAssertion ?a . } graph ?a { {{ ?property a rdf:Property . filter(strstarts(str(?property), ?__ontologyNamespace)) } union { ?property a rdf:Property . ?property dct:partOf ?_ontology_multi_iri . }} optional { ?property rdfs:label ?property_label . } optional { ?property skos:definition ?definition . } } } order by ?property_label" assertion.
- get-classes-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select distinct ?class ?class_label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Class . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?class . ?np np:hasAssertion ?a . } graph ?a { {{ ?class a owl:Class . filter(strstarts(str(?class), ?__ontologyNamespace)) } union { ?class a owl:Class . ?class dct:partOf ?_ontology_multi_iri . }} optional { ?class rdfs:label ?class_label . } optional { ?class skos:definition ?definition . } } } order by ?class_label" assertion.
- get-classes-of-ontology sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select ?class ?class_label (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Class . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?class . ?np np:hasAssertion ?a . } graph ?a { ?class dct:partOf ?_ontology_multi_iri . optional { ?class rdfs:label ?class_label . } optional { ?class skos:definition ?definition . } } } order by ?class_label" assertion.
- get-properties-of-ontology sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select ?property ?property_label ?domain ?range (?definition as ?description) ?np where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType rdf:Property . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?property . ?np np:hasAssertion ?a . } graph ?a { ?property dct:partOf ?_ontology_multi_iri . optional { ?property skos:definition ?definition . } optional { ?property rdfs:label ?property_label . } optional { ?property rdfs:domain ?domain . } optional { ?property rdfs:range ?range . } } } order by ?property_label" assertion.
- get-all-science-live-credits sparql "prefix sl: <https://w3id.org/sciencelive/o/terms/> 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/> select ?credit ?points ?awardedAgent ?awardingAgent ?reason ?comment where { graph npa:graph { ?np npx:hasNanopubType sl:ScienceLiveCredit . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?credit . } graph ?a { ?credit a sl:ScienceLiveCredit . ?credit sl:hasCreditPoints ?points . ?credit sl:isAwardedTo ?awardedAgent . ?credit sl:isAwardedBy ?awardingAgent . ?credit sl:isAwardedFor ?reason . ?credit rdfs:comment ?comment . } }" assertion.
- get-all-science-live-credits sparql "prefix sl: <https://w3id.org/sciencelive/o/terms/> 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/> select ?credit ?points ?awardedAgent ?awardingAgent ?reason ?comment where { graph npa:graph { ?np npx:hasNanopubType sl:ScienceLiveCredit . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?credit . } graph ?a { ?credit a sl:ScienceLiveCredit . ?credit sl:hasCreditPoints ?points . ?credit sl:isAwardedTo ?awardedAgent . ?credit sl:isAwardedBy ?awardingAgent . ?credit sl:isAwardedFor ?reason . ?credit rdfs:comment ?comment . } }" assertion.
- get-org-to-ns-associations 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 biodiv: <https://w3id.org/kpxl/biodiv/terms/> prefix biolink: <https://w3id.org/biolink/vocab/> select ?organism ?relation ?nucleotidesequence ?creator ?date ?np where { graph npa:graph { ?np npx:hasNanopubType biodiv:OrganismToNucleotideSequenceAssociation . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?association . optional { ?np npx:signedBy ?creator . } } graph ?a { ?association a biodiv:OrganismToNucleotideSequenceAssociation . ?association biolink:predicate ?relation . ?association biolink:subject ?organism . ?association biolink:object ?nucleotidesequence . } } order by desc(?date)" assertion.
- get-org-to-ns-associations 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 biodiv: <https://w3id.org/kpxl/biodiv/terms/> prefix biolink: <https://w3id.org/biolink/vocab/> prefix nt: <https://w3id.org/np/o/ntemplate/> select ?taxonName ?taxonName_label ?relation ?nucleotideSequence ?creator ?date ?np where { graph npa:graph { ?np npx:hasNanopubType biodiv:OrganismToNucleotideSequenceAssociation . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np np:hasPublicationInfo ?i . ?np npx:introduces ?association . optional { ?np npx:signedBy ?creator . } } graph ?a { ?association a biodiv:OrganismToNucleotideSequenceAssociation . ?association biolink:predicate ?relation . ?association biolink:subject ?organism . ?organism a ?taxonConcept . ?taxonConcept biodiv:hasTaxonName ?taxonName . ?association biolink:object ?nucleotideSequence . } graph ?i { optional { ?taxonName nt:hasLabelFromApi ?taxonName_label } } } order by desc(?date)" assertion.
- get-paragraphs sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 schema: <https://schema.org/> prefix kpxlt: <https://w3id.org/kpxl/gen/terms/> select ?title ?content where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?paragraph schema:title ?title . ?paragraph rdf:type kpxlt:Paragraph . ?paragraph kpxlt:hasContent ?content . values ?_resource_multi_iri {} ?paragraph schema:isPartOf ?_resource_multi_iri . } }" assertion.
- get-all-doa sparql "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX np: <http://www.nanopub.org/nschema#> PREFIX npa: <http://purl.org/nanopub/admin/> PREFIX npx: <http://purl.org/nanopub/x/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX prov: <http://www.w3.org/ns/prov#> SELECT ?n1 ?label ?thing ?date where { GRAPH npa:graph { ?n1 npx:introduces ?thing . ?n1 npx:hasNanopubType <https://w3id/fff/req/Digital-Object-Analysis> . ?n1 npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?np2 npx:invalidates ?n1 ; npa:hasValidSignatureForPublicKey ?pubkey . } ?n1 dct:created ?date . ?n1 rdfs:label ?label . } }" assertion.
- get-all-us sparql "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX np: <http://www.nanopub.org/nschema#> PREFIX npa: <http://purl.org/nanopub/admin/> PREFIX npx: <http://purl.org/nanopub/x/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX prov: <http://www.w3.org/ns/prov#> SELECT ?n1 ?label ?thing ?date where { GRAPH npa:graph { ?n1 npx:introduces ?thing . ?n1 npx:hasNanopubType <https://w3id/fff/req/User-Story> . ?n1 npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?np2 npx:invalidates ?n1 ; npa:hasValidSignatureForPublicKey ?pubkey . } ?n1 dct:created ?date . ?n1 rdfs:label ?label . } }" assertion.
- get-all-us sparql "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX np: <http://www.nanopub.org/nschema#> PREFIX npa: <http://purl.org/nanopub/admin/> PREFIX npx: <http://purl.org/nanopub/x/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX prov: <http://www.w3.org/ns/prov#> SELECT ?n1 ?label ?thing ?date where { GRAPH npa:graph { ?n1 npx:introduces ?thing . ?n1 npx:hasNanopubType <https://w3id/fff/req/User-Story> . ?n1 npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?np2 npx:invalidates ?n1 ; npa:hasValidSignatureForPublicKey ?pubkey . } ?n1 dct:created ?date . ?n1 rdfs:label ?label . } }" assertion.
- get-paragraphs sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 schema: <https://schema.org/> prefix kpxlt: <https://w3id.org/kpxl/gen/terms/> select ?title ?content ?date ?np where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np dct:creator ?user . ?np np:hasAssertion ?a . } graph ?a { ?paragraph schema:title ?title . ?paragraph rdf:type kpxlt:Paragraph . ?paragraph kpxlt:hasContent ?content . values ?_resource_multi_iri {} ?paragraph schema:isPartOf ?_resource_multi_iri . } }" assertion.
- get-thanks 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 thank: <https://w3id.org/spaces/nanopub/r/thank/> select (?__thanker_iri as ?thanker) (?__thanked_iri as ?thanked) (?__thankReason_iri as ?thankReason) ?comment ?np ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:signedBy ?__thanker_iri . ?np np:hasAssertion ?a . } graph ?a { ?thanks a thank:Thanks . ?thanks thank:hasThanked ?__thanked_iri . ?thanks thank:hasThanker ?__thanker_iri . ?thanks thank:thanksFor ?__thankReason_iri . optional { ?thanks rdfs:comment ?comment . } } } order by desc(?date)" assertion.
- get-collections-for-resource sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix dcmitype: <http://purl.org/dc/dcmitype/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?collection ?collection_label ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType dcmitype:Collection . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?collection } graph ?a { ?collection a dcmitype:Collection . ?collection rdfs:label ?collection_label . optional { ?collection dct:description ?description } values ?_resource_multi_iri {} ?collection dct:isPartOf|gen:isMaintainedBy ?_resource_multi_iri . } } order by ?collection_label" assertion.
- get-planned-event-attendances 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 gen: <https://w3id.org/kpxl/gen/terms/> select ?event ?event_label ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType gen:plansToAttend . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np npx:signedBy ?_user_iri . ?np np:hasAssertion ?a . } graph ?a { ?_user_iri gen:plansToAttend ?event . optional { ?event rdfs:label ?event_label } optional { ?event dct:date ?date } } } order by desc(?date)" assertion.
- get-definitions-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 skos: <http://www.w3.org/2004/02/skos/core#> select distinct ?np ?term ?term_label ?creator ?date where { values ?_ontology_multi_iri {} graph npa:graph { values ?termType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual } ?np npx:hasNanopubType ?termType . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?term . optional { ?np npx:signedBy ?creator . } ?np np:hasAssertion ?a . } graph ?a { {{ ?term a ?termType . filter(strstarts(str(?term), ?__ontologyNamespace)) } union { ?term a ?termType . ?term dct:partOf ?_ontology_multi_iri . }} optional { ?term rdfs:label ?term_label . } } } order by ?label" assertion.
- get-definitions-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix schema: <https://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?np ?item ?item_label ?creator ?date where { values ?_ontology_multi_iri { <https://w3id.org/fair/fip/terms/FIP-Ontology> } graph npa:graph { values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph } ?np npx:hasNanopubType ?itemType . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?item . optional { ?np npx:signedBy ?creator . } ?np np:hasAssertion ?a . } graph ?a { {{ ?item a ?itemType . filter(strstarts(str(?item), ?__ontologyNamespace)) } union { ?item a ?itemType . ?item dct:partOf|schema:isPartOf ?_ontology_multi_iri . }} optional { ?item rdfs:label|schema:title ?item_label . } } } order by ?label" assertion.
- get-definitions-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix schema: <https://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?np ?item ?item_label ?creator ?date where { values ?_ontology_multi_iri {} graph npa:graph { values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph } ?np npx:hasNanopubType ?itemType . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?item . optional { ?np npx:signedBy ?creator . } ?np np:hasAssertion ?a . } graph ?a { {{ ?item a ?itemType . filter(strstarts(str(?item), ?__ontologyNamespace)) } union { ?item a ?itemType . ?item dct:partOf|schema:isPartOf ?_ontology_multi_iri . }} optional { ?item rdfs:label|schema:title ?item_label . } } } order by ?label" assertion.
- get-definitions-of-ontology-ns sparql "prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix schema: <https://schema.org/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?np ("^" as ?np_label) ?item ?item_label ?creator ?date where { values ?_ontology_multi_iri {} graph npa:graph { values ?itemType { owl:Class rdf:Property owl:ObjectProperty owl:DatatypeProperty owl:NamedIndividual gen:Paragraph } ?np npx:hasNanopubType ?itemType . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np npx:introduces ?item . optional { ?np npx:signedBy ?creator . } ?np np:hasAssertion ?a . } graph ?a { {{ ?item a ?itemType . filter(strstarts(str(?item), ?__ontologyNamespace)) } union { ?item a ?itemType . ?item dct:partOf|schema:isPartOf ?_ontology_multi_iri . }} optional { ?item rdfs:label|schema:title ?item_label . } } } order by ?label" assertion.
- get-ontology-versions 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 owl: <http://www.w3.org/2002/07/owl#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?ontologyVersion ?ontologyVersion_label ?creator ?np ("^" as ?np_label) where { values ?_ontology_multi_iri {} graph npa:graph { ?np npx:hasNanopubType owl:Ontology . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?ontologyVersion . ?np npx:signedBy ?creator . } graph ?a { ?ontologyVersion rdfs:label ?ontologyVersion_label . ?ontologyVersion dct:isVersionOf ?_ontology_multi_iri . ?ontologyVersion gen:hasContentIndex ?contentIndex . } } order by desc(?ontologyVersion)" assertion.
- get-classes-of-ontology-version sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?class ?class_label (?definition as ?description) (?termNp as ?np) ("^" as ?np_label) where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?termNp . } graph npa:graph { } graph npa:graph { ?termNp dct:created ?date . ?termNp npx:introduces ?class . ?termNp np:hasAssertion ?termNpA . } graph ?termNpA { ?class a owl:Class . optional { ?class rdfs:label ?class_label . } optional { ?class skos:definition ?definition . } } } order by ?class_label" assertion.
- get-classes-of-ontology-version sparql "prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?property ?property_label (?definition as ?description) (?termNp as ?np) ("^" as ?np_label)where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?termNp . } graph npa:graph { } graph npa:graph { ?termNp dct:created ?date . ?termNp npx:introduces ?property . ?termNp np:hasAssertion ?termNpA . } graph ?termNpA { ?property a rdf:Property . optional { ?property rdfs:label ?property_label . } optional { ?property skos:definition ?definition . } } } order by ?property_label" assertion.
- get-individuals-of-ontology-version sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?individual ?individual_label (?definition as ?description) (?termNp as ?np) ("^" as ?np_label) where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?termNp . } graph npa:graph { } graph npa:graph { ?termNp dct:created ?date . ?termNp npx:introduces ?individual . ?termNp np:hasAssertion ?termNpA . } graph ?termNpA { ?individual a owl:NamedIndividual . optional { ?individual rdfs:label ?individual_label . } optional { ?individual skos:definition ?definition . } } } order by ?individual_label" assertion.
- get-paragraphs-of-ontology-version sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <https://schema.org/> select distinct ?paragraph ?paragraph_label (?itemNp as ?np) ("^" as ?np_label) where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?itemNp . } graph npa:graph { ?itemNp dct:created ?date . ?itemNp npx:introduces ?paragraph . ?itemNp np:hasAssertion ?itemNpA . } graph ?itemNpA { ?paragraph schema:title ?paragraph_label . ?paragraph a gen:Paragraph . ?paragraph gen:hasContent ?content . } } order by ?paragraph_label" assertion.
- get-paragraphs-of-ontology-version sparql "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> prefix owl: <http://www.w3.org/2002/07/owl#> 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 skos: <http://www.w3.org/2004/02/skos/core#> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <https://schema.org/> select distinct ?title ?content ?date ?np ("^" as ?np_label) where { graph npa:graph { ?_ontologyVersionNp_iri npx:introduces ?ontologyVersion . ?_ontologyVersionNp_iri np:hasAssertion ?ontologyVersionNpA . } graph ?ontologyVersionNpA { ?ontologyVersion a owl:Ontology . ?ontologyVersion gen:hasContentIndex ?contentIndex . } graph npa:graph { ?contentIndex np:hasAssertion ?contentIndexA . } graph ?contentIndexA { ?contentIndex npx:includesElement ?itemNp . } graph npa:graph { ?itemNp dct:created ?date . ?itemNp npx:introduces ?paragraph . ?itemNp np:hasAssertion ?itemNpA . } graph ?itemNpA { ?paragraph schema:title ?title . ?paragraph a gen:Paragraph . ?paragraph gen:hasContent ?content . } } order by ?title" assertion.
- get-rocrate-nanopubs 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/> select distinct ?rocrate ?date ?np (?__pubkeyhash as ?pubkey) where { graph npa:graph { ?np npx:hasNanopubType npx:RoCrateNanopub . ?np npa:hasValidSignatureForPublicKeyHash ?__pubkeyhash . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?__pubkeyhash . } ?np dct:created ?date . ?np npx:introduces ?rocrate . ?np npx:signedBy ?__rocratebot_iri . } } order by desc(?date)" assertion.
- get-rocrate-nanopubs 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/> select distinct ?rocrate ?date (?__agent_iri as ?agent) ?np (?__pubkeyhash as ?pubkey) where { graph npa:graph { ?np npx:hasNanopubType npx:RoCrateNanopub . ?np npa:hasValidSignatureForPublicKeyHash ?__pubkeyhash . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?__pubkeyhash . } ?np dct:created ?date . ?np npx:introduces ?rocrate . ?np npx:signedBy ?__agent_iri . } } order by desc(?date)" assertion.
- get-posts-by-user 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 schema: <https://schema.org/> select ?title ?about ?text ?date ?url ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType schema:SocialMediaPosting . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np npx:introduces ?post . ?np np:hasAssertion ?a . } graph ?a { ?post schema:headline ?title . ?post schema:articleBody ?text . ?post schema:datePublished ?date . ?post schema:author ?_author_iri . optional { ?post schema:url ?url . } optional { ?post rdfs:seeAlso ?about . } } } order by desc(?date)" assertion.
- get-all-user-profile-pics sparql "prefix np: <http://www.nanopub.org/nschema#> prefix npx: <http://purl.org/nanopub/x/> prefix npa: <http://purl.org/nanopub/admin/> prefix schema: <https://schema.org/> select ?user ?imageUrl where { graph npa:graph { ?np np:hasAssertion ?a . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?user schema:image ?imageUrl . } }" assertion.
- sparql-construct-query-test 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/> construct { ?np rdfs:label ?label . } where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np rdfs:label ?label . } } limit 10" assertion.
- get-all-user-default-license sparql "prefix np: <http://www.nanopub.org/nschema#> prefix npx: <http://purl.org/nanopub/x/> prefix npa: <http://purl.org/nanopub/admin/> prefix kpxl_terms: <https://w3id.org/kpxl/gen/terms/> select ?user ?license where { graph npa:graph { ?np np:hasAssertion ?a . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?user kpxl_terms:hasDefaultLicense ?license . } }" assertion.
- get-all-rocrate-nanopubs 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/> select distinct ?rocrate ?date ?np where { graph npa:graph { ?np npx:hasNanopubType npx:RoCrateNanopub . filter not exists { ?npx npx:invalidates ?np } ?np dct:created ?date . ?np npx:introduces ?rocrate . } } order by desc(?date)" assertion.
- get-all-rocrate-nanopubs 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/> select distinct ?rocrate ?date ?np where { graph npa:graph { ?np npx:hasNanopubType npx:RoCrateNanopub . filter not exists { ?npx npx:invalidates ?np } ?np dct:created ?date . ?np npx:introduces ?rocrate . } } order by desc(?date)" assertion.
- get-all-ro-crate-nanopubs-again 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/> select distinct ?rocrate ?date ?np where { graph npa:graph { ?np npx:hasNanopubType npx:RoCrateNanopub . filter not exists { ?npx npx:invalidates ?np } ?np dct:created ?date . ?np npx:introduces ?rocrate . } } order by desc(?date)" assertion.
- get-3pff-events sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix tpff: <https://w3id.org/fair/3pff/> prefix schema: <http://schema.org/> select (?event as ?Event_ID) (?eventShortName as ?Event_ID__label) (?eventLongName as ?Event_Name) (?eventDate as ?Date) (group_concat(distinct ?eventOrganizer; separator=" ") as ?Organizers) (group_concat(distinct ?eventFacilitator; separator=" ") as ?Facilitators) (group_concat(distinct ?eventMoreInfoLink; separator=" ") as ?More_Info) (?np as ?Source) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:created ?npDate . ?np dct:creator ?npCreator . ?np np:hasAssertion ?assertion . ?np npx:introduces ?event . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } } graph ?assertion { ?event a tpff:3PFF-event . ?event rdfs:label ?eventName . # Date Handling: Check for both predicates optional { ?event dct:date ?dateDct . } optional { ?event schema:startDate ?dateSchema . } bind(coalesce(?dateDct, ?dateSchema) as ?eventDate) bind(replace(str(?eventName), ' ?\\|.*$', '') as ?eventShortName) bind(replace(str(?eventName), '^([A-Z0-9]{2,3}).*$', '$1') as ?eventSeries) bind(replace(str(?eventName), '^.*\\| ?(.*)$', '$1') as ?eventLongName) optional { ?event tpff:has-event-organizer ?eventOrganizer . } optional { ?event tpff:has-event-facilitator ?eventFacilitator . } optional { ?event rdfs:seeAlso ?eventMoreInfoLink . } } } group by ?event ?eventShortName ?eventLongName ?eventDate ?np order by desc(?eventDate)" assertion.
- get-3pff-events sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix tpff: <https://w3id.org/fair/3pff/> prefix schema: <http://schema.org/> select (?event as ?Event_ID) (?eventShortName as ?Event_ID__label) (?eventLongName as ?Event_Name) (?eventDate as ?Date) (group_concat(distinct ?eventOrganizer; separator=" ") as ?Organizers) (group_concat(distinct ?eventFacilitator; separator=" ") as ?Facilitators) (group_concat(distinct ?eventMoreInfoLink; separator=" ") as ?More_Info) (?np as ?Source) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:created ?npDate . ?np dct:creator ?npCreator . ?np np:hasAssertion ?assertion . ?np npx:introduces ?event . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } } graph ?assertion { ?event a tpff:3PFF-event . ?event rdfs:label ?eventName . # Date Handling: Check for both predicates optional { ?event dct:date ?dateDct . } optional { ?event schema:startDate ?dateSchema . } bind(coalesce(?dateDct, strBefore(str(?dateSchema), "T")) as ?eventDate) bind(replace(str(?eventName), ' ?\\|.*$', '') as ?eventShortName) bind(replace(str(?eventName), '^([A-Z0-9]{2,3}).*$', '$1') as ?eventSeries) bind(replace(str(?eventName), '^.*\\| ?(.*)$', '$1') as ?eventLongName) optional { ?event tpff:has-event-organizer ?eventOrganizer . } optional { ?event tpff:has-event-facilitator ?eventFacilitator . } optional { ?event rdfs:seeAlso ?eventMoreInfoLink . } } } group by ?event ?eventShortName ?eventLongName ?eventDate ?np order by desc(?eventDate)" assertion.
- get-personal-urls 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/> select ?url ?url_label where { graph npa:graph { ?np npx:hasNanopubType rdfs:seeAlso . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . } graph ?a { ?_user_iri rdfs:seeAlso ?url . ?url rdfs:label ?url_label . } } order by ?url_label" assertion.
- get-personal-urls 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/> select ?urllink where { graph npa:graph { ?np npx:hasNanopubType rdfs:seeAlso . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . } graph ?a { ?_user_iri rdfs:seeAlso ?url . ?url rdfs:label ?url_label . } bind(concat("<span><a target=\"_blank\" href=\"", str(?url), "\">", ?url_label, "</a></span>") as ?urllink) } order by ?url_label" assertion.
- get-latest-nanopubs-by-user sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> select distinct ?np ?label ?date where { graph npa:graph { ?np npx:signedBy ?_user_iri . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . optional { ?np rdfs:label ?label . } filter not exists { ?np npx:hasNanopubType npx:retracts . } } } order by desc(?date) limit 100" assertion.
- get-future-planned-event-attendances 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> select distinct ?event ?event_label ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType gen:plansToAttend . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np npx:signedBy ?_user_iri . ?np np:hasAssertion ?a . } graph ?a { ?_user_iri gen:plansToAttend ?event . optional { ?event rdfs:label ?event_label } optional { ?event dct:date ?date1 } } optional { bind(iri(concat("https://w3id.org/np/l/nanopub-query-1.1/repo/type/", sha256(str(gen:Space)))) as ?space_repo) service ?space_repo { graph npa:graph { ?nps npx:introduces ?event . ?nps npa:hasValidSignatureForPublicKeyHash ?pks . filter not exists { ?npsx npx:invalidates ?nps ; npa:hasValidSignatureForPublicKeyHash ?pks . } ?nps np:hasAssertion ?as . } graph ?as { ?event schema:startDate ?datetime . bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date2) } } } bind(coalesce(?date1, ?date2) as ?date) filter(?date >= xsd:date(substr(str(now()), 0, 11))) } order by ?date" assertion.
- get-all-iadopt-variables 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 iadopt: <https://w3id.org/iadopt/ont/> prefix skos: <http://www.w3.org/2004/02/skos/core#> select ?variable ?variable_label ?property ?property_label ?entity ?entity_label ?matrix ?matrix_label ?context ?context_label ?creator ?np ("^" as ?np_label) ?date where { graph npa:graph { ?np npx:hasNanopubType iadopt:Variable . filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?variable . ?np npx:signedBy ?creator . } graph ?a { ?variable a iadopt:Variable . optional { ?variable rdfs:label ?variable_label . } optional { ?variable iadopt:hasObservableProperty ?property . optional { ?property rdfs:label ?property_label . } } optional { ?variable iadopt:hasObjectOfInterest ?entity . optional { ?entity rdfs:label ?entity_label . } } optional { ?variable iadopt:hasMatrix ?matrix . optional { ?matrix rdfs:label ?matrix_label . } } optional { ?variable iadopt:hasContextObject ?context . optional { ?context rdfs:label ?context_label . } } } } order by desc(?date)" assertion.
- get-all-views 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 gen: <https://w3id.org/kpxl/gen/terms/> select ?view ?view_label ?query ?space ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . } graph ?a { ?view a gen:SpaceQueryView . ?view dct:title ?view_label . ?view gen:hasViewQuery ?query . optional { ?view gen:isViewForSpace ?space . } } } order by desc(?date)" assertion.
- get-all-resource-views 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix nt: <https://w3id.org/np/o/ntemplate/> select ?view ?view_label ?viewKind ?type ?query (count(distinct ?actionTemplate) as ?template_count) (min(?actionTemplate) as ?first_template) (min(?actionLabel) as ?first_template_label) ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np np:hasPublicationInfo ?pi . } graph ?pi { ?np nt:wasCreatedFromTemplate <https://w3id.org/np/RARLsTlqbTesu1b0WJZ-zL1z96xumOiqbK3l_vV6iZoww> . } graph ?a { ?view a gen:ResourceView . optional { ?view a ?type . filter(?type != gen:ResourceView) } optional { ?view rdfs:label ?view_label . } optional { ?view dct:isVersionOf ?viewKind . } optional { ?view gen:hasViewQuery ?query . } optional { ?view gen:hasViewAction ?action . ?action gen:hasActionTemplate ?actionTemplate . optional { ?action rdfs:label ?actionLabel . } } } } group by ?view ?view_label ?viewKind ?type ?query ?date ?np order by desc(?date)" assertion.
- get-all-iadopt-variables 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 iadopt: <https://w3id.org/iadopt/ont/> prefix skos: <http://www.w3.org/2004/02/skos/core#> select ?variable ?variable_label ?entity ?entity_label ?creator ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType iadopt:Variable . filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?variable . ?np npx:signedBy ?creator . } graph ?a { ?variable a iadopt:Variable . optional { ?variable rdfs:label ?variable_label . } optional { ?variable iadopt:hasObjectOfInterest ?entity . optional { ?entity rdfs:label ?entity_label . } } } } order by desc(?date)" assertion.
- get-all-iadopt-variables 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 iadopt: <https://w3id.org/iadopt/ont/> prefix skos: <http://www.w3.org/2004/02/skos/core#> select ?variable ?variable_label ?entity ?entity_label ?creator ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType iadopt:Variable . filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np npx:introduces ?variable . ?np npx:signedBy ?creator . } graph ?a { ?variable a iadopt:Variable . optional { ?variable rdfs:label ?variable_label . } optional { ?variable iadopt:hasObjectOfInterest ?entity . optional { ?entity rdfs:label ?entity_label . } } } } order by desc(?date)" assertion.
- get-presentations-by-speaker 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/> select ?presentation ?presentation_label ?date ?event ?event_label ?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 dct:created ?npdate . ?np np:hasAssertion ?a . ?np npx:introduces ?presentation . } graph ?a { ?presentation a wd:Q604733 . ?presentation wd:P823 ?_speaker_iri . optional { ?presentation rdfs:label ?presentation_label . } optional { ?presentation dct:date ?date . } optional { ?presentation dct:isPartOf ?event . optional { ?event rdfs:label ?event_label . } } } } order by desc(?date)" assertion.
- get-nanopubs-mentioning-relevant-entities sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?np ?label ?date where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . optional { ?np rdfs:label ?label . } filter not exists { ?np npx:hasNanopubType npx:retracts . } ?np np:hasAssertion ?a . } graph ?a { ?subj ?pred ?resource . } values ?_entity_multi_iri {} graph ?relevantA { ?resource gen:isRelevantFor ?_entity_multi_iri . optional { ?resource rdfs:label ?resource_label . } } graph npa:graph { ?relevantNp npx:hasNanopubType gen:isRelevantFor . ?relevantNp npa:hasValidSignatureForPublicKeyHash ?relevantPubkey . filter not exists { ?relevantNpx npx:invalidates ?relevantNp ; npa:hasValidSignatureForPublicKeyHash ?relevantPubkey . } } } order by desc(?date) limit 100" assertion.
- get-presentations-for-event 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/> select ?presentation ?presentation_label ?date ?event ?event_label ?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 dct:created ?npdate . ?np np:hasAssertion ?a . ?np npx:introduces ?presentation . } values ?_event_multi_iri {} graph ?a { ?presentation a wd:Q604733 . ?presentation dct:isPartOf ?_event_multi_iri . optional { ?presentation rdfs:label ?presentation_label . } optional { ?presentation dct:date ?date . } optional { ?presentation dct:isPartOf ?event . optional { ?event rdfs:label ?event_label . } } } } order by desc(?date)" assertion.
- get-presentations-for-event 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/> select ?presentation ?presentation_label ?date ?speaker ?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 dct:created ?npdate . ?np np:hasAssertion ?a . ?np npx:introduces ?presentation . } values ?_event_multi_iri {} graph ?a { ?presentation a wd:Q604733 . ?presentation dct:isPartOf ?_event_multi_iri . ?presentation wd:P823 ?speaker . optional { ?presentation rdfs:label ?presentation_label . } optional { ?presentation dct:date ?date . } } } order by desc(?date)" assertion.
- get-active-user-count-in-time-period sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select (count(distinct ?userid) as ?userCount) ?isOrcid where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:creator ?userid . ?np dct:created ?date . } filter not exists { graph npa:graph { ?np npa:hasSubIri ?userid . } } bind(substr(str(?date), 1, 10) as ?dateStr) filter(?dateStr >= ?_startDate) filter(?dateStr <= ?_endDate) bind(strstarts(str(?userid), "https://orcid.org/") as ?isOrcid) } group by ?isOrcid order by ?isOrcid" assertion.
- get-team-member-spaces sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix dct: <http://purl.org/dc/terms/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?space ?space_label ?np ("^" as ?np_label) where { graph npa:graph { ?np np:hasAssertion ?a . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } } graph ?a { ?space gen:hasTeamMember ?_user_iri . } graph npa:graph { ?space_np npx:introduces ?space . ?space_np npa:hasValidSignatureForPublicKeyHash ?space_pubkey . filter not exists { ?space_npx npx:invalidates ?space_np ; npa:hasValidSignatureForPublicKeyHash ?space_pubkey . } ?space_np np:hasAssertion ?space_a . } graph ?space_a { ?space rdfs:label ?space_label . } } order by ?space_label" assertion.
- get-active-user-count-in-time-period sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select (count(distinct ?userid) as ?userCount) ?isOrcid where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np npx:signedBy ?userid . ?np dct:created ?date . } filter not exists { graph npa:graph { ?np npa:hasSubIri ?userid . } } bind(substr(str(?date), 1, 10) as ?dateStr) filter(?dateStr >= ?_startDate) filter(?dateStr <= ?_endDate) bind(strstarts(str(?userid), "https://orcid.org/") as ?isOrcid) } group by ?isOrcid order by ?isOrcid" assertion.
- get-weekly-active-user-count sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?week (substr(str(min(?date)), 0, 11) as ?firstday) (count(distinct ?userid) as ?usercount) where { { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:creator ?userid . ?np dct:created ?date . } } union { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np np:hasAssertion ?assertion . ?np np:hasProvenance ?prov . ?np dct:created ?date . ?np dct:creator ?tool . values ?tool { <https://fip-wizard.ds-wizard.org/wizard> } } graph ?prov { ?assertion prov:wasAttributedTo ?userid . } } filter not exists { graph npa:graph { ?np npa:hasSubIri ?userid . } } bind(if(month(?date) <= 2, year(?date) - 1, year(?date)) as ?y) bind(if(month(?date) <= 2, month(?date) + 9, month(?date) - 3) as ?m) bind(365*?y + xsd:integer(?y/4) - xsd:integer(?y/100) + xsd:integer(?y/400) + xsd:integer((153*?m + 2)/5) + day(?date) as ?daynum) bind(?daynum + 1 - xsd:integer((?daynum + 1) / 7) * 7 as ?dow) bind(xsd:integer((?daynum - ?dow) / 7) as ?week) } group by ?week order by desc(?week)" assertion.
- get-weekly-active-user-count sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?week (substr(str(min(?date)), 0, 11) as ?firstday) (count(distinct ?userid) as ?usercount) where { { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np dct:creator ?userid . ?np dct:created ?date . } } union { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np np:hasAssertion ?assertion . ?np np:hasProvenance ?prov . ?np dct:created ?date . ?np dct:creator ?tool . values ?tool { <https://fip-wizard.ds-wizard.org/wizard> } } graph ?prov { ?assertion prov:wasAttributedTo ?userid . } } filter not exists { graph npa:graph { ?np npa:hasSubIri ?userid . } } bind(if(month(?date) <= 2, year(?date) - 1, year(?date)) as ?y) bind(if(month(?date) <= 2, month(?date) + 9, month(?date) - 3) as ?m) bind(365*?y + xsd:integer(?y/4) - xsd:integer(?y/100) + xsd:integer(?y/400) + xsd:integer((153*?m + 2)/5) + day(?date) as ?daynum) bind(?daynum + 1 - xsd:integer((?daynum + 1) / 7) * 7 as ?dow) bind(xsd:integer((?daynum - ?dow) / 7) as ?week) } group by ?week order by desc(?week)" assertion.
- get-weekly-active-human-user-count sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?week (substr(str(min(?date)), 0, 11) as ?firstday) (count(distinct ?userid) as ?usercount) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np npx:signedBy ?userid . ?np dct:created ?date . } filter(strstarts(str(?userid), "https://orcid.org/")) bind(if(month(?date) <= 2, year(?date) - 1, year(?date)) as ?y) bind(if(month(?date) <= 2, month(?date) + 9, month(?date) - 3) as ?m) bind(365*?y + xsd:integer(?y/4) - xsd:integer(?y/100) + xsd:integer(?y/400) + xsd:integer((153*?m + 2)/5) + day(?date) as ?daynum) bind(?daynum + 1 - xsd:integer((?daynum + 1) / 7) * 7 as ?dow) bind(xsd:integer((?daynum - ?dow) / 7) as ?week) } group by ?week order by desc(?week)" assertion.
- get-weekly-active-human-user-count sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> prefix prov: <http://www.w3.org/ns/prov#> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?week (substr(str(min(?date)), 0, 11) as ?firstday) (count(distinct ?userid) as ?usercount) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np npx:signedBy ?userid . ?np dct:created ?date . } filter(strstarts(str(?userid), "https://orcid.org/")) filter(?userid != <https://orcid.org/0000-0000-0000-0000>) filter(?userid != <https://orcid.org/1234-1234-1234-1234>) bind(if(month(?date) <= 2, year(?date) - 1, year(?date)) as ?y) bind(if(month(?date) <= 2, month(?date) + 9, month(?date) - 3) as ?m) bind(365*?y + xsd:integer(?y/4) - xsd:integer(?y/100) + xsd:integer(?y/400) + xsd:integer((153*?m + 2)/5) + day(?date) as ?daynum) bind(?daynum + 1 - xsd:integer((?daynum + 1) / 7) * 7 as ?dow) bind(xsd:integer((?daynum - ?dow) / 7) as ?week) } group by ?week order by desc(?week)" assertion.
- get-weekly-new-user-count sparql "prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> select ?week (substr(str(min(?firstdate)), 0, 11) as ?firstday) (count(distinct ?userid) as ?newusercount) where { { select ?userid (min(?date) as ?firstdate) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKey ?pubkey . ?np npx:signedBy ?userid . ?np npx:hasNanopubType npx:declaredBy . ?np dct:created ?date . } filter(strstarts(str(?userid), "https://orcid.org/")) filter(?userid != <https://orcid.org/0000-0000-0000-0000>) filter(?userid != <https://orcid.org/1234-1234-1234-1234>) } group by ?userid } bind(if(month(?firstdate) <= 2, year(?firstdate) - 1, year(?firstdate)) as ?y) bind(if(month(?firstdate) <= 2, month(?firstdate) + 9, month(?firstdate) - 3) as ?m) bind(365*?y + xsd:integer(?y/4) - xsd:integer(?y/100) + xsd:integer(?y/400) + xsd:integer((153*?m + 2)/5) + day(?firstdate) as ?daynum) bind(?daynum + 1 - xsd:integer((?daynum + 1) / 7) * 7 as ?dow) bind(xsd:integer((?daynum - ?dow) / 7) as ?week) } group by ?week order by desc(?week)" assertion.
- get-cumulative-user-count sparql "prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix dct: <http://purl.org/dc/terms/> select ?week (substr(str(min(?fd1)), 0, 11) as ?firstday) (count(distinct ?u2) as ?totalusers) where { { select ?u1 ?fd1 ?w1 where { { select ?u1 (min(?d1) as ?fd1) where { graph npa:graph { ?np1 npa:hasValidSignatureForPublicKey ?pk1 . ?np1 dct:creator ?u1 . ?np1 dct:created ?d1 . ?np1 np:hasAssertion ?a1 . } graph ?a1 { ?decl1 npx:declaredBy ?agent1 . } filter(strstarts(str(?u1), "https://orcid.org/")) filter(?u1 != <https://orcid.org/0000-0000-0000-0000>) filter(?u1 != <https://orcid.org/1234-1234-1234-1234>) } group by ?u1 } bind(if(month(?fd1) <= 2, year(?fd1) - 1, year(?fd1)) as ?y1) bind(if(month(?fd1) <= 2, month(?fd1) + 9, month(?fd1) - 3) as ?m1) bind(365*?y1 + xsd:integer(?y1/4) - xsd:integer(?y1/100) + xsd:integer(?y1/400) + xsd:integer((153*?m1 + 2)/5) + day(?fd1) as ?dn1) bind(?dn1 + 1 - xsd:integer((?dn1 + 1) / 7) * 7 as ?dw1) bind(xsd:integer((?dn1 - ?dw1) / 7) as ?w1) } } { select ?u2 ?w2 where { { select ?u2 (min(?d2) as ?fd2) where { graph npa:graph { ?np2 npa:hasValidSignatureForPublicKey ?pk2 . ?np2 dct:creator ?u2 . ?np2 dct:created ?d2 . ?np2 np:hasAssertion ?a2 . } graph ?a2 { ?decl2 npx:declaredBy ?agent2 . } filter(strstarts(str(?u2), "https://orcid.org/")) filter(?u2 != <https://orcid.org/0000-0000-0000-0000>) filter(?u2 != <https://orcid.org/1234-1234-1234-1234>) } group by ?u2 } bind(if(month(?fd2) <= 2, year(?fd2) - 1, year(?fd2)) as ?y2) bind(if(month(?fd2) <= 2, month(?fd2) + 9, month(?fd2) - 3) as ?m2) bind(365*?y2 + xsd:integer(?y2/4) - xsd:integer(?y2/100) + xsd:integer(?y2/400) + xsd:integer((153*?m2 + 2)/5) + day(?fd2) as ?dn2) bind(?dn2 + 1 - xsd:integer((?dn2 + 1) / 7) * 7 as ?dw2) bind(xsd:integer((?dn2 - ?dw2) / 7) as ?w2) } } bind(?w1 as ?week) filter(?w2 <= ?week) } group by ?week order by desc(?week)" assertion.
- get-replication-study-definition 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/> select ?relation ?value where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . ?np npx:introduces ?_resource_iri . } values ?_resource_multi_iri {} values ?pred { <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#label> <https://w3id.org/sciencelive/o/terms/targetsClaim> <https://w3id.org/sciencelive/o/terms/hasScopeDescription> <https://w3id.org/sciencelive/o/terms/hasMethodologyDescription> <https://w3id.org/sciencelive/o/terms/hasDeviationDescription> <http://www.w3.org/2004/02/skos/core#related> <https://w3id.org/sciencelive/o/terms/hasDiscipline> } graph ?a { ?_resource_multi_iri ?pred ?obj . } }" assertion.
- get-replication-study-definition 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/> select distinct ?relation ?value where { values ?_resource_multi_iri {} graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . ?np npx:introduces ?_resource_multi_iri . } values ?pred { <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#label> <https://w3id.org/sciencelive/o/terms/targetsClaim> <https://w3id.org/sciencelive/o/terms/hasScopeDescription> <https://w3id.org/sciencelive/o/terms/hasMethodologyDescription> <https://w3id.org/sciencelive/o/terms/hasDeviationDescription> <http://www.w3.org/2004/02/skos/core#related> <https://w3id.org/sciencelive/o/terms/hasDiscipline> } graph ?a { ?_resource_multi_iri ?relation ?value . } }" assertion.
- get-replication-study-definition 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/> select distinct ?relation ?value where { values ?_resource_multi_iri {} graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . ?np npx:introduces ?_resource_multi_iri . } values ?relation { <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#label> <https://w3id.org/sciencelive/o/terms/targetsClaim> <https://w3id.org/sciencelive/o/terms/hasScopeDescription> <https://w3id.org/sciencelive/o/terms/hasMethodologyDescription> <https://w3id.org/sciencelive/o/terms/hasDeviationDescription> <http://www.w3.org/2004/02/skos/core#related> <https://w3id.org/sciencelive/o/terms/hasDiscipline> } graph ?a { ?_resource_multi_iri ?relation ?value . } }" assertion.
- get-replication-study-outcome 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 sl: <https://w3id.org/sciencelive/o/terms/> select distinct ?relation ?value where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . ?np npx:introduces ?outcome . } values ?_replicationStudy_multi_iri {} graph ?a { ?outcome sl:isOutcomeOf ?_replicationStudy_multi_iri . } values ?relation { <http://www.w3.org/2000/01/rdf-schema#label> <https://w3id.org/sciencelive/o/terms/hasOutcomeRepository> <http://schema.org/endDate> <https://w3id.org/sciencelive/o/terms/hasValidationStatus> <https://w3id.org/sciencelive/o/terms/hasConclusionDescription> <https://w3id.org/sciencelive/o/terms/hasEvidenceDescription> <https://w3id.org/sciencelive/o/terms/hasConfidenceLevel> <https://w3id.org/sciencelive/o/terms/hasLimitationsDescription> } graph ?a { ?outcome ?relation ?value . } }" assertion.
- find-views sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix dct: <http://purl.org/dc/terms/> prefix search: <http://www.openrdf.org/contrib/lucenesail#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?thing ?label ?description ?np ?pubkey ?date where { graph npa:graph { ?np npx:hasNanopubType gen:ResourceView . ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np dct:created ?date . ?np npx:embeds ?thing . ?np rdfs:label ?label . optional { ?np dct:description ?description . } bind(concat(?label, " ", coalesce(?description, "")) as ?text) filter(contains(lcase(?label), lcase(?_query))) } } limit 10" assertion.
- find-views sparql "prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix dct: <http://purl.org/dc/terms/> prefix search: <http://www.openrdf.org/contrib/lucenesail#> prefix gen: <https://w3id.org/kpxl/gen/terms/> select distinct ?thing ?label ?description ?np ?pubkey ?date where { graph npa:graph { ?np npx:hasNanopubType gen:ResourceView . ?np npa:hasValidSignatureForPublicKey ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . } ?np dct:created ?date . ?np npx:embeds ?thing . ?np rdfs:label ?label . optional { ?np dct:description ?description . } bind(concat(?label, " ", coalesce(?description, "")) as ?text) filter(contains(lcase(?label), lcase(?_query))) ?np np:hasAssertion ?a . } graph ?a { ?thing gen:appliesToInstancesOf ?__appliedViewClass_iri . } } limit 10" assertion.
- get-resource-views-without-applies-to 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix nt: <https://w3id.org/np/o/ntemplate/> select ?view ?view_label ?type ?query ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np np:hasPublicationInfo ?pi . } graph ?pi { ?np nt:wasCreatedFromTemplate <https://w3id.org/np/RARLsTlqbTesu1b0WJZ-zL1z96xumOiqbK3l_vV6iZoww> . } graph ?a { ?view a gen:ResourceView . optional { ?view a ?type . filter(?type != gen:ResourceView) } optional { ?view rdfs:label ?view_label . } optional { ?view gen:hasViewQuery ?query . } filter not exists { ?view gen:appliesToInstancesOf ?class . } } } order by desc(?date)" assertion.
- get-upcoming-events 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> select ?event ?event_label ?date ?description ?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 npx:introduces ?event . ?np np:hasAssertion ?a . } graph ?a { ?event a gen:Space . ?event a gen:Event . ?event rdfs:label ?event_label . ?event schema:startDate ?datetime . optional { ?event dct:description ?description . } } bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date) filter(?date >= xsd:date(substr(str(now()), 0, 11))) } order by ?date" assertion.
- get-upcoming-and-ongoing-events 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> select ?event ?event_label ?date ?description ?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 npx:introduces ?event . ?np np:hasAssertion ?a . } graph ?a { ?event a gen:Space . ?event a gen:Event . ?event rdfs:label ?event_label . ?event schema:startDate ?datetime . optional { ?event schema:endDate ?endDatetime . } optional { ?event dct:description ?description . } } bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date) bind(xsd:date(substr(str(now()), 0, 11)) as ?today) optional { bind(xsd:date(substr(str(?endDatetime), 0, 11)) as ?endDate) } filter(?date >= ?today || (bound(?endDate) && ?endDate >= ?today)) } order by ?date" assertion.
- get-upcoming-and-ongoing-events 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> select ?event ?event_label ?status ?date ?description ?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 npx:introduces ?event . ?np np:hasAssertion ?a . } graph ?a { ?event a gen:Space . ?event a gen:Event . ?event rdfs:label ?event_label . ?event schema:startDate ?datetime . optional { ?event schema:endDate ?endDatetime . } optional { ?event dct:description ?description . } } bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date) bind(xsd:date(substr(str(now()), 0, 11)) as ?today) optional { bind(xsd:date(substr(str(?endDatetime), 0, 11)) as ?endDate) } filter(?date >= ?today || (bound(?endDate) && ?endDate >= ?today)) bind(if(?date > ?today, "upcoming", "ongoing") as ?status) } order by ?date" assertion.
- get-recent-and-upcoming-events 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 gen: <https://w3id.org/kpxl/gen/terms/> prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> select ?event ?event_label ?status ?date ?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 npx:introduces ?event . ?np np:hasAssertion ?a . ?np dct:created ?npDate . filter not exists { ?np2 npx:introduces ?event . ?np2 npa:hasValidSignatureForPublicKeyHash ?pubkey2 . filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . } ?np2 dct:created ?npDate2 . filter(?npDate2 > ?npDate) } } graph ?a { ?event a gen:Space . ?event a gen:Event . ?event rdfs:label ?event_label . ?event schema:startDate ?datetime . optional { ?event schema:endDate ?endDatetime . } } bind(xsd:date(substr(str(?datetime), 0, 11)) as ?date) bind(xsd:date(substr(str(now()), 0, 11)) as ?today) optional { bind(xsd:date(substr(str(?endDatetime), 0, 11)) as ?endDate) } bind(if(bound(?endDate), ?endDate, ?date) as ?effectiveEnd) filter(?date >= ?today || ?effectiveEnd >= ?today - "P7D"^^xsd:duration) bind(if(?effectiveEnd < ?today, 1, if(?date > ?today, 3, 2)) as ?statusOrder) bind(if(?date > ?today, "upcoming", if(?effectiveEnd >= ?today, "ongoing", "recently concluded")) as ?status) } order by ?statusOrder ?date" assertion.
- get-publications 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 fabio: <http://purl.org/spar/fabio/> prefix bibo: <http://purl.org/ontology/bibo/> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?paper ?paper_label ?journal ?journal_label ?publication_date (group_concat(str(?author_id); separator=" ") as ?authorids_multi_iri) (group_concat(replace(replace(?author_name, "\\\\", "\\\\\\\\"), "\\n", "\\\\n"); separator="\n") as ?authornames_multi) ?np ("^" as ?np_label) where { graph npa:graph { ?np npx:hasNanopubType fabio:ScholarlyWork . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np np:hasAssertion ?a . ?np npx:introduces ?paper . } graph ?a { ?paper dct:title ?paper_label . ?paper bibo:authorList ?author_list . optional { ?paper dct:date ?publication_date . } ?author_list ?rdfseqpred ?author_id . filter(strstarts(str(?rdfseqpred), "http://www.w3.org/1999/02/22-rdf-syntax-ns#_")) ?author_id foaf:name ?author_name . optional { ?paper dct:isPartOf ?journal . ?journal dct:title ?journal_label . } } } group by ?paper ?paper_label ?journal ?journal_label ?publication_date ?np order by desc(?publication_date)" assertion.