[ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/list-view-displays", "http://purl.org/dc/terms/description": [ { "@value": "Lists the currently active view displays of a resource, for the About page: standalone view displays and the views contributed by assigned presets (marked in the via_preset column). Filtered to declarations signed by an admin or maintainer of the owning space, or by the affected user themselves; deactivated entries (and entries with a newer deactivation for the same pair) are excluded. Each view is resolved to its latest version and classified by a scope column: top-level means the view applies to the resource's own page (its appliesToInstancesOf matches the resource's own type -- Space/IndividualAgent/MaintainedResource -- or it is pinned via gen:appliesTo, or it has no targeting), and part-level means it applies to the resource's parts/instances; a hasTopLevelView preset is always top-level and a hasView preset falls back to the view's own targeting. The target_multi_iri column lists the class(es)/namespace(s) a part-level view applies to (blank for top-level rows). Also shows the structural position, the contributing preset (if any), who added it, the date, and the source nanopub. Ordered by structural position." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "List view displays" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/type/11daee46fdfff957dc17b46f5dc1a618045afd4f5634d5334ce9db19c3689a3c" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix gen: \n\nselect ?view ?view_label ?position ?scope\n (if(?scope = \"part-level\", ?target_multi_iri_raw, \"\") as ?target_multi_iri)\n (if(?scope = \"part-level\", ?target_label_multi_raw, \"\") as ?target_label_multi)\n ?via_preset ?via_preset_label ?added_by ?date_added ?deactivateView ?np ?np_label\nwhere {\n select ?view ?view_label ?position\n (if(bound(?presetScope), ?presetScope,\n if(bound(?preset),\n if(?aVHasTarget > 0, if(?aVMatch > 0, \"top-level\", \"part-level\"), \"top-level\"),\n if(?aDApplyHere > 0, \"top-level\",\n if(?aDHasTarget > 0, if(?aDMatch > 0, \"top-level\", \"part-level\"),\n if(?aDHasApply > 0, \"part-level\",\n if(?aVHasTarget > 0, if(?aVMatch > 0, \"top-level\", \"part-level\"), \"top-level\")))))) as ?scope)\n ?target_multi_iri_raw ?target_label_multi_raw\n (?preset as ?via_preset) (?preset_label as ?via_preset_label)\n (?user as ?added_by) (?date as ?date_added)\n ?deactivateView ?np (\"^\" as ?np_label) where {\n select ?view ?view_label ?position ?preset ?preset_label ?presetScope ?user ?date ?deactivateView ?np\n (max(?fDApplyHere) as ?aDApplyHere) (max(?fDHasApply) as ?aDHasApply) (max(?fDHasTarget) as ?aDHasTarget)\n (max(?fDMatch) as ?aDMatch) (max(?fVHasTarget) as ?aVHasTarget) (max(?fVMatch) as ?aVMatch)\n (group_concat(distinct ?targetIri; separator=\" \") as ?target_multi_iri_raw)\n (group_concat(distinct ?targetLabel; separator=\"\\n\") as ?target_label_multi_raw)\n where {\n {\n select ?_resource_multi_iri ?viewRef ?viewLatest ?view_label ?position ?preset ?preset_label ?presetScope ?user ?date ?np\n ?ownClass ?dApply ?dTarget ?vTarget where {\n values ?_resource_multi_iri {}\n service {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n {\n graph ?stateG {\n ?_resource_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?authAgent ;\n (npa:inverseProperty|npa:regularProperty) ?roleProp .\n ?authAcct a npa:AccountState ; npa:agent ?authAgent ; npa:pubkey ?pubkey .\n }\n optional {\n graph npa:spacesGraph {\n ?rd a npa:RoleDeclaration ; npa:forSpace ?space ;\n npa:hasRoleType gen:MaintainerRole ;\n (npa:inverseProperty|npa:regularProperty) ?roleProp .\n bind(true as ?isMaintainer)\n }\n }\n filter(?roleProp = gen:hasAdmin || bound(?isMaintainer))\n } union {\n graph ?stateG { ?selfAcct a npa:AccountState ; npa:agent ?_resource_multi_iri ; npa:pubkey ?pubkey . }\n }\n bind(if(exists { graph ?stateG { ?_resource_multi_iri npa:isMaintainedBy ?anyMaintainer } }, gen:MaintainedResource,\n if(exists { graph ?stateG { ?ownAcc a npa:AccountState ; npa:agent ?_resource_multi_iri } }, gen:IndividualAgent,\n gen:Space)) as ?ownClass)\n }\n {\n graph npa:graph {\n ?np npx:hasNanopubType gen:ViewDisplay ;\n npa:hasValidSignatureForPublicKeyHash ?pubkey ;\n dct:created ?date ;\n npx:embeds ?display ;\n np:hasAssertion ?a .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n optional { ?np npx:signedBy ?user }\n }\n graph ?a {\n ?display gen:isDisplayOfView ?viewRef ;\n gen:isDisplayFor ?_resource_multi_iri .\n optional {\n values ?displayMode { gen:ActivatedViewDisplay gen:DeactivatedViewDisplay }\n ?display a ?displayMode .\n }\n optional { ?display gen:appliesTo ?dApply . }\n optional { ?display (gen:appliesToInstancesOf|gen:appliesToNamespace) ?dTarget . }\n }\n }\n union\n {\n select ?viewRef ?displayMode ?preset ?preset_label ?presetScope ?user ?date ?np ?pubkey ?_resource_multi_iri {\n service {\n graph npa:graph {\n ?np npx:hasNanopubType gen:PresetAssignment ;\n npa:hasValidSignatureForPublicKeyHash ?pubkey ;\n dct:created ?date ;\n npx:embeds ?assignment ;\n np:hasAssertion ?a .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\n optional { ?np npx:signedBy ?user }\n }\n graph ?a {\n ?assignment gen:isAssignmentFor ?_resource_multi_iri ;\n gen:isAssignmentOfPreset ?preset .\n optional {\n values ?displayMode { gen:ActivatedPresetAssignment gen:DeactivatedPresetAssignment }\n ?assignment a ?displayMode .\n }\n }\n filter not exists {\n graph npa:graph {\n ?np2 npx:hasNanopubType gen:PresetAssignment ;\n npa:hasValidSignatureForPublicKeyHash ?pubkey2 ;\n dct:created ?date2 ;\n npx:embeds ?assignment2 ;\n np:hasAssertion ?a2 .\n filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }\n }\n graph ?a2 {\n ?assignment2 a gen:DeactivatedPresetAssignment ;\n gen:isAssignmentFor ?_resource_multi_iri ;\n gen:isAssignmentOfPreset ?preset .\n }\n filter(?date2 > ?date)\n }\n graph npa:graph { ?presetNp npx:embeds ?preset ; np:hasAssertion ?pa . }\n graph ?pa {\n ?preset a gen:Preset .\n optional { ?preset rdfs:label ?preset_label . }\n { ?preset gen:hasTopLevelView ?viewRef . bind(\"top-level\" as ?presetScope) }\n union { ?preset gen:hasView ?viewRef }\n }\n }\n }\n }\n optional {\n graph npa:graph { ?np np:hasAssertion ?npAssertion . }\n graph ?npAssertion { ?npDisplay gen:hasStructuralPosition ?dispPos . }\n }\n filter(!bound(?displayMode) || !contains(str(?displayMode), \"Deactivated\"))\n filter not exists {\n graph npa:graph {\n ?np2 npx:hasNanopubType gen:ViewDisplay ;\n npa:hasValidSignatureForPublicKeyHash ?pubkey2 ;\n dct:created ?date2 ;\n npx:embeds ?display2 ;\n np:hasAssertion ?a2 .\n filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }\n }\n graph ?a2 {\n ?display2 a gen:DeactivatedViewDisplay ;\n gen:isDisplayOfView ?viewRef ;\n gen:isDisplayFor ?_resource_multi_iri .\n }\n filter(?date2 > ?date)\n }\n optional {\n service {\n graph npa:graph { ?vnp npx:embeds ?viewRef . }\n { select ?vnp (max(?hDate) as ?headDate) where {\n graph npa:networkGraph { ?h (npx:supersedes)* ?vnp . }\n graph npa:graph {\n ?vnp npa:hasValidSignatureForPublicKey ?k .\n ?h npa:hasValidSignatureForPublicKey ?k ; dct:created ?hDate .\n filter not exists { ?i npx:invalidates ?h ; npa:hasValidSignatureForPublicKey ?k . }\n }\n } group by ?vnp }\n graph npa:networkGraph { ?headNp (npx:supersedes)* ?vnp . }\n graph npa:graph {\n ?vnp npa:hasValidSignatureForPublicKey ?vKey .\n ?headNp npa:hasValidSignatureForPublicKey ?vKey ; dct:created ?headDate ;\n npx:embeds ?viewLatest ; np:hasAssertion ?hva .\n filter not exists { ?i2 npx:invalidates ?headNp ; npa:hasValidSignatureForPublicKey ?vKey . }\n }\n graph ?hva { ?viewLatest dct:title ?view_label . }\n optional { graph ?hva { ?viewLatest gen:hasStructuralPosition ?viewPos . } }\n optional { graph ?hva { ?viewLatest (gen:appliesToInstancesOf|gen:appliesToNamespace) ?vTarget . } }\n }\n }\n bind(coalesce(?dispPos, ?viewPos, \"\") as ?position)\n }\n }\n bind(if(coalesce(str(?dApply) = str(?_resource_multi_iri), false), 1, 0) as ?fDApplyHere)\n bind(if(bound(?dApply), 1, 0) as ?fDHasApply)\n bind(if(bound(?dTarget), 1, 0) as ?fDHasTarget)\n bind(if(coalesce(str(?dTarget) = str(?ownClass), false) || coalesce(strstarts(str(?_resource_multi_iri), str(?dTarget)), false), 1, 0) as ?fDMatch)\n bind(if(bound(?vTarget), 1, 0) as ?fVHasTarget)\n bind(if(coalesce(str(?vTarget) = str(?ownClass), false) || coalesce(strstarts(str(?_resource_multi_iri), str(?vTarget)), false), 1, 0) as ?fVMatch)\n bind(coalesce(?dTarget, ?vTarget) as ?targetIri)\n bind(replace(str(?targetIri), \"^.*[/#]\", \"\") as ?targetLocalName)\n bind(if(coalesce(strlen(?targetLocalName) > 0, false), ?targetLocalName, str(?targetIri)) as ?targetLabel)\n bind(coalesce(?viewLatest, ?viewRef) as ?view)\n bind(str(?viewRef) as ?deactivateView)\n }\n group by ?view ?view_label ?position ?preset ?preset_label ?presetScope ?user ?date ?deactivateView ?np\n }\n}\norder by ?position desc(?date_added)" } ] } ] }, { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/pubinfo", "@graph": [ { "@id": "https://orcid.org/0000-0002-1267-0234", "http://xmlns.com/foaf/0.1/name": [ { "@value": "Tobias Kuhn" } ] }, { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs", "http://purl.org/dc/terms/created": [ { "@value": "2026-06-15T09:29:47Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/embeds": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/list-view-displays" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAe63temfrauWIRVIpGa5booRJgioepZSg8t54lgMxmNo" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "List view displays" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RA0J4vUn_dekg-U1kK3AOEt02p9mT2WO03uGxLDec1jLw" }, { "@id": "https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "oZgSVIH5fg770ZKEA9BxGpei5o45i+u60UNVC0pc742T38aFjipO6ydIvFtx4/Lnho66Yto3/bcX3TI2xSKc9C+IsdCG+nA24a9KXvvfh0xWKuYvZmys0O2T+dh8gviUEQjFt7YjmYxTfxfWDy7K7ICiAVSC+FIOlRDc1wITvFU=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/Head", "@graph": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAoA0OmA359MKh6nFim_7P9MyYi0gshfxbS0b_ttLrsMs/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]