Status: 
| part | subject | predicate | object | published by | date | |
|---|---|---|---|---|---|---|
|
Assertion
|
|
|||||
|
Assertion
|
Get the classes assigned to a thing (view)
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
Returns the classes assigned to the given thing, with view-friendly columns (class / class_label). Used by the /explore page as a resource view (the 'Assigned to' list).
|
|
||||
|
Assertion
|
|
|||||
|
Assertion
|
prefix dct: <http://purl.org/dc/terms/>
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 nt: <https://w3id.org/np/o/ntemplate/>
select distinct ?class ?class_label ?np ("^" as ?np_label) where {
graph ?g {
?_thing_iri a ?class .
}
graph npa:graph {
?np npa:hasValidSignatureForPublicKey ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }
?np npa:hasGraph ?g .
?np np:hasPublicationInfo ?i .
}
optional { graph ?g { ?class rdfs:label ?classLabel1 . } }
optional { graph ?g { ?class dct:title ?classLabel2 . } }
optional { graph ?i { ?class rdfs:label ?classLabel3 . } }
optional { graph ?i { ?class nt:hasLabelFromApi ?classLabel4 . } }
bind(coalesce(?classLabel1, ?classLabel2, ?classLabel3, ?classLabel4) as ?class_label)
} limit 1000
|
|
||||
|
PublicationInfo
|
|
|||||
|
Assertion
|
|