🔗 References (max. 100)

show query show view
part subject predicate object published by date
Assertion
Assertion
Get past sub-space events
Assertion
PublicationInfo
Get past sub-space events - Returns the past (concluded) events (defined as Spaces) that are sub-spaces of the given space.
Assertion
Returns the past (concluded) events (defined as Spaces) that are sub-spaces of the given space.
Assertion
Assertion
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 ?dates ?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 . } } service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . } graph ?stateG { ?_resource_iri npa:hasSubSpace ?event . } } bind(xsd:date(substr(str(?datetime), 1, 10)) as ?date) bind(xsd:date(substr(str(now()), 1, 10)) as ?today) optional { bind(xsd:date(substr(str(?endDatetime), 1, 10)) as ?endDate) } bind(if(bound(?endDate), ?endDate, ?date) as ?effectiveEnd) filter(?effectiveEnd < ?today) bind(substr(str(?datetime), 1, 10) as ?startDay) bind(if(bound(?endDatetime), substr(str(?endDatetime), 1, 10), ?startDay) as ?endDay) bind(if(?startDay = ?endDay, concat(?startDay, " ", substr(str(?datetime), 12, 5)), concat(?startDay, " – ", ?endDay)) as ?dates) } order by desc(?date)
PublicationInfo
Assertion