Status: 
| part | subject | predicate | object | published by | date | |
|---|---|---|---|---|---|---|
|
Assertion
|
|
|||||
|
Assertion
|
Get 3PFF Events (HTML)
|
|
||||
|
Assertion
|
|
|||||
|
PublicationInfo
|
Get 3PFF Events (HTML)
|
|
||||
|
Assertion
|
Returns a list of all events related to the Three Point FAIRification Framework (3PFF), with multi-value fields pre-rendered as HTML anchor strings. Organizer and facilitator links use the agent's display name (resolved from the trust repository) as anchor text, falling back to the URI's local name. Variant of get-3pff-events intended for consumption by clients (e.g. nanopub-table with data-bind-html) that cannot split space-separated URI lists on their own.
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
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/>
prefix tpff: <https://w3id.org/fair/3pff/>
prefix schema: <http://schema.org/>
select
(concat("<span><a href=\"", str(?event), "\" target=\"_blank\">", str(?eventShortName), "</a></span>") as ?Event_ID)
(?eventLongName as ?Event_Name)
(?eventDate as ?Date)
(concat("<span>", group_concat(distinct concat(
"<a href=\"", str(?eventOrganizer), "\">",
coalesce(?eventOrganizerName, replace(str(?eventOrganizer), "^.*[/#]", "")),
"</a>"
); separator=", "), "</span>") as ?Organizers)
(concat("<span>", group_concat(distinct concat(
"<a href=\"", str(?eventFacilitator), "\">",
coalesce(?eventFacilitatorName, replace(str(?eventFacilitator), "^.*[/#]", "")),
"</a>"
); separator=", "), "</span>") as ?Facilitators)
(concat("<span>", group_concat(distinct concat(
"<a href=\"", str(?eventMoreInfoLink), "\">",
replace(str(?eventMoreInfoLink), "^.*[/#]", ""),
"</a>"
); separator=", "), "</span>") 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 {
service <https://w3id.org/np/l/nanopub-query-1.1/repo/trust> {
graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentTrustState ?organizerTrustState . }
graph ?organizerTrustState { ?eventOrganizer foaf:name ?eventOrganizerName . }
}
}
}
optional {
?event tpff:has-event-facilitator ?eventFacilitator .
optional {
service <https://w3id.org/np/l/nanopub-query-1.1/repo/trust> {
graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentTrustState ?facilitatorTrustState . }
graph ?facilitatorTrustState { ?eventFacilitator foaf:name ?eventFacilitatorName . }
}
}
}
optional {
?event rdfs:seeAlso ?eventMoreInfoLink .
}
}
}
group by ?event ?eventShortName ?eventLongName ?eventDate ?np
order by desc(?eventDate)
|
|
||||
|
PublicationInfo
|
|
|||||
|
Assertion
|
|