11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!DOCTYPE xsl:stylesheet [
3+ <!ENTITY lapp " https://w3id.org/atomgraph/linkeddatahub/apps#" >
34 <!ENTITY def " https://w3id.org/atomgraph/linkeddatahub/default#" >
45 <!ENTITY ldh " https://w3id.org/atomgraph/linkeddatahub#" >
56 <!ENTITY ac " https://w3id.org/atomgraph/client#" >
2324 <!ENTITY sp " http://spinrdf.org/sp#" >
2425 <!ENTITY spin " http://spinrdf.org/spin#" >
2526 <!ENTITY void " http://rdfs.org/ns/void#" >
27+ <!ENTITY nfo " http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#" >
2628 <!ENTITY schema " https://schema.org/" >
2729]>
2830<xsl : stylesheet version =" 3.0"
@@ -32,6 +34,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"
3234xmlns:xs=" http://www.w3.org/2001/XMLSchema"
3335xmlns:map=" http://www.w3.org/2005/xpath-functions/map"
3436xmlns:json=" http://www.w3.org/2005/xpath-functions"
37+ xmlns:lapp=" &lapp; "
3538xmlns:ldh=" &ldh; "
3639xmlns:ac=" ∾ "
3740xmlns:a=" &a; "
@@ -209,7 +212,8 @@ extension-element-prefixes="ixsl"
209212
210213 <xsl : template match =" rdf:RDF" mode =" bs2:Row" >
211214 <xsl : param name =" create-resource" select =" true()" as =" xs:boolean" />
212- <xsl : param name =" classes" as =" element()*" />
215+ <xsl : param name =" class-uris" select =" (xs:anyURI('&lapp; Application'), xs:anyURI('&sd; Service'), xs:anyURI('&nfo; FileDataObject'), xs:anyURI('&sp; Construct'), xs:anyURI('&sp; Describe'), xs:anyURI('&sp; Select'), xs:anyURI('&sp; Ask'), xs:anyURI('&ldh; RDFImport'), xs:anyURI('&ldh; CSVImport'), xs:anyURI('&ldh; GraphChart'), xs:anyURI('&ldh; ResultSetChart'), xs:anyURI('&ldh; View'))" as =" xs:anyURI*" />
216+ <xsl : param name =" classes" select =" for $class-uri in $class-uris return key('resources', $class-uri, document(ac:document-uri($class-uri)))" as =" element()*" />
213217
214218 <!-- select elements explicitly, because Saxon-JS chokes on text nodes here -->
215219 <!-- hide the content resources - cannot suppress them in the resource-level bs2:Block because its being reused ldh:ContentList/bs2:Row modes -->
0 commit comments