https://w3id.org/np/RAf7292LFsprh9LuaHRdv4TcFIar_sH9cAALVgOYs4V24
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAf7292LFsprh9LuaHRdv4TcFIar_sH9cAALVgOYs4V24> .
@prefix sub: <https://w3id.org/np/RAf7292LFsprh9LuaHRdv4TcFIar_sH9cAALVgOYs4V24/> .
@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-workshops-for-conference a grlc:grlc-query;
dct:description "Lists the sub-spaces of a given conference Space, one row each, each linked to its own page, with whether it is a Workshop, a Tutorial or a Session (conference-ontology), and its day, time and room, ordered by when it starts. Sub-space membership is read from the validated current space state. The descriptive triples come from each sub-space's current defining nanopublication: among the valid (not invalidated, not superseded) nanopublications introducing the sub-space, the most recently created one wins, so an override published by another admin under a different signing key replaces the earlier definition instead of adding a second row. Reads both the http:// and https:// schema.org namespaces. The website column links to the event's schema:url (http or https form) when it has one, labelled with the bare host and path; it is empty otherwise.";
dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
rdfs:label "Get workshops, tutorials and sessions of a conference";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces>;
grlc:sparql """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 gen: <https://w3id.org/kpxl/gen/terms/>
prefix conf: <https://w3id.org/scholarlydata/ontology/conference-ontology.owl#>
prefix schema: <http://schema.org/>
prefix schemanew: <https://schema.org/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
select ?title_iri ?title_iri_label ?kind ?day ?time ?room ?website_iri ?website_iri_label ?np ?np_label (?np as ?override_target)
where {
{
select ?title_iri ?np ?a ?start where {
{
select ?title_iri ?maxC (max(str(?cnp)) as ?npS) where {
{
select ?title_iri (max(?created) as ?maxC) where {
values ?_space_multi_iri {}
graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?state }
graph ?state { ?title_iri npa:isSubSpaceOf ?_space_multi_iri }
graph npa:graph {
?cnp npa:hasValidSignatureForPublicKeyHash ?pubkey ;
npx:introduces ?title_iri ;
dct:created ?created .
filter not exists { ?inv npx:invalidates ?cnp ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
filter not exists { ?newer npx:supersedes ?cnp . }
}
} group by ?title_iri
}
graph npa:graph { ?cnp npx:introduces ?title_iri ; dct:created ?maxC . }
} group by ?title_iri ?maxC
}
bind(iri(?npS) as ?np)
graph npa:graph { ?np np:hasAssertion ?a . }
optional { graph ?a { ?title_iri schema:startDate ?startA . } }
optional { graph ?a { ?title_iri schemanew:startDate ?startB . } }
bind(coalesce(?startA, ?startB) as ?start)
}
}
graph ?a { ?title_iri rdfs:label ?title_iri_label . }
optional {
graph ?a { ?title_iri rdf:type ?t . }
filter(?t in (conf:Workshop, conf:Tutorial, conf:Session))
}
optional { graph ?a { ?title_iri schema:endDate ?endA . } }
optional { graph ?a { ?title_iri schemanew:endDate ?endB . } }
optional { graph ?a { ?title_iri schema:location ?roomA . } }
optional { graph ?a { ?title_iri schemanew:location ?roomB . } }
optional { graph ?a { ?title_iri schema:url ?webA . } }
optional { graph ?a { ?title_iri schemanew:url ?webB . } }
bind(coalesce(?webA, ?webB) as ?website_iri)
bind(coalesce(replace(replace(str(?website_iri), \"^https?://\", \"\"), \"/$\", \"\"), \"\") as ?website_iri_label)
bind(coalesce(?endA, ?endB) as ?end)
bind(coalesce(str(?roomA), str(?roomB), \"\") as ?room)
bind(if(bound(?t), replace(str(?t), \"^.*#\", \"\"), \"\") as ?kind)
bind(if(bound(?start), substr(str(?start), 1, 10), \"\") as ?day)
bind(if(bound(?start),
concat(substr(str(?start), 12, 5),
if(bound(?end), concat(\"-\", substr(str(?end), 12, 5)), \"\")),
\"\") as ?time)
bind(\"^\" as ?np_label)
}
order by ?day ?time ?title_iri_label""" .
}
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-17T07:07:27Z"^^xsd:dateTime;
dct:creator orcid:0000-0002-1267-0234;
dct:license <https://creativecommons.org/licenses/by/4.0/>;
npx:embeds sub:get-workshops-for-conference;
npx:supersedes <https://w3id.org/np/RA2Bh_ZPs_MMkUPjwR4P7gfBH_WKShM4oCfDloMd6M0SY>;
rdfs:label "Get workshops, tutorials and sessions of a conference";
nt:wasCreatedFromProvenanceTemplate <http://purl.org/np/RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM>;
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 "pewG1kzDkPJbo0l4HYWdo/9Z7QCNpYFD1M7mHzrAobeDQdH2aFv+cQO6uhF57k5LYQbKY28flFHB1S+fM0hi5eWPgtyh7kc7MZAAdPOAW6/o1v/LSwfia5PAtB9mS4BsbEL0iAPpA2d+CSZ8L3viZHV4CC9Qx03KEj85UVee/Hw=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}