Nanopublication

< Home

ID

https://w3id.org/np/RAyvLOzNTzQrGJKtldHV8pBby0w2KqzVmyySuU1AKN6XU

Formats

.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt

Content

@prefix this: <https://w3id.org/np/RAyvLOzNTzQrGJKtldHV8pBby0w2KqzVmyySuU1AKN6XU> .
@prefix sub: <https://w3id.org/np/RAyvLOzNTzQrGJKtldHV8pBby0w2KqzVmyySuU1AKN6XU/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

sub:Head {
  this: a np:Nanopublication;
    np:hasAssertion sub:assertion;
    np:hasProvenance sub:provenance;
    np:hasPublicationInfo sub:pubinfo .
}

sub:assertion {
  sub:get-presentation-defaults a grlc:grlc-query;
    dct:description "A fill query for the add-a-presentation action: given an event or space, returns its own start date, so that the publish form opens with the presentation's start date already set to when the event begins and the user only adjusts the time. Returns a single row, or none at all when the resource has no start date, which the form treats as a no-op. The date is read only from the resource's own current defining nanopublication - validly signed, not invalidated and not superseded - rather than from any assertion about it anywhere in the store, so that a third party cannot decide what the form suggests. Both the http:// and https:// schema.org spellings are accepted, Spaces conventionally using the former, and a fractional-second part is trimmed so the default matches the lexical form these events are normally written in. The fractional-second part is trimmed with the character class [.] rather than an escaped dot, so that the SPARQL carries no backslash at all: a backslash has to survive TriG unescaping to reach the query engine, and the first version of this query did not, which made it a lexical error rather than a wrong answer.";
    dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get the form defaults for a presentation at an event";
    grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
    grlc:sparql """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 schemaold: <http://schema.org/>

select ?startDate where {
  graph npa:graph {
    ?np npa:hasValidSignatureForPublicKeyHash ?pubkey ;
        np:hasAssertion ?a ;
        npx:introduces ?_resource_iri .
    filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
    filter not exists { ?newer npx:supersedes ?np . }
  }
  optional { graph ?a { ?_resource_iri schemaold:startDate ?sdA . } }
  optional { graph ?a { ?_resource_iri schema:startDate ?sdB . } }
  bind(coalesce(?sdA, ?sdB) as ?sd)
  filter(bound(?sd))
  bind(replace(str(?sd), \"[.][0-9]+\", \"\") as ?startDate)
}
limit 1""" .
}

sub:provenance {
  sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}

sub:pubinfo {
  orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" .
  
  this: dct:created "2026-09-09T11:58:36Z"^^xsd:dateTime;
    dct:creator orcid:0000-0002-1267-0234;
    dct:license <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:get-presentation-defaults;
    npx:supersedes <https://w3id.org/np/RA7b5s9_6L7vjbGU81JgZ0bMO3Jcxh7hkEPf0LhxJsgCo>,
      <https://w3id.org/np/RAb5b5m5KrDACHHXBsJ_7wHitbZ2kmQDMrU0RiWzxSbTI>;
    rdfs:label "Get the form defaults for a presentation at an event";
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA>,
      <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>, <https://w3id.org/np/RARJj78P72NR5edKOnu_f4ePE9NYYuW2m2pM-fEoobMBk>,
      <https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw>;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
  
  sub:sig npx:hasAlgorithm "RSA";
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
    npx:hasSignature "h2PegHHtgDQHH+fkARm8LTd8rY+Fgl89gUQ3zCusmilZilOK4IKsPR5W9P5I6ENAd0n/CWJhP4XqZWfHyibPkdL07gxdBJWGlyWia7OWsFJk76EPlv3ZBPsAyUOuwzOM31jU4dNN7N58+xmhlGQ7YBht0ZsaJyNyT/ek2fW8tBA=";
    npx:hasSignatureTarget this:;
    npx:signedBy orcid:0000-0002-1267-0234 .
}