@prefix this: . @prefix sub: . @prefix grlc: . @prefix np: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix ns1: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-classes-for-thing-view a grlc:grlc-query; dct:description "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)."; dct:license ; rdfs:label "Get the classes assigned to a thing (view)"; grlc:endpoint ; grlc:sparql """prefix dct: prefix rdfs: prefix np: prefix npa: prefix npx: prefix nt: select distinct ?class ?class_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""" . } 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-05-30T08:00:00Z"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:introduces sub:get-classes-for-thing-view; nt:wasCreatedFromProvenanceTemplate ns1:RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM; nt:wasCreatedFromPubinfoTemplate ns1:RAA2MfqdBCzmz9yVWjKLXNbyfBNcwsMmOqcNUxkk1maIM, ns1:RAh1gm83JiG5M6kDxXhaYT1l49nCzyrckMvTzcPn-iv90, ns1:RAjpBMlw3owYhJUBo3DtsuDlXsNAJ8cnGeWAutDVjuAuI; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "AdPD3lZA1gzwKygl5IhSH7GyP62hroOzC4jw6pT/KsxmbP7vRSc53VJReE3Kr4G/aOWivpRSMkTFrW3v7+XPyGY3gZOsuRNNXFqM4rH/64vy4Iwn4UM3ZSAtHmI4119Wft5Ptn++/0i9SyK0bwhVz2T0vaiCzLXU9ArEaXpksxI="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }