Skip to content

Commit

Permalink
Defined $types
Browse files Browse the repository at this point in the history
  • Loading branch information
namedgraph committed Oct 19, 2024
1 parent 4d1b9f8 commit 3db40a5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ WHERE
<xsl:variable name="forClass" select="$container/@typeof" as="xs:anyURI"/>
<xsl:variable name="resource" select="key('resources-by-type', $forClass, ?body)[not(key('predicates-by-object', @rdf:nodeID))]" as="element()"/>
<!-- TO-DO: refactor to use asynchronous HTTP requests -->
<xsl:variable name="types" select="distinct-values($resource/rdf:type/@rdf:resource)" as="xs:anyURI*"/>
<xsl:variable name="property-uris" select="distinct-values($resource/*/concat(namespace-uri(), local-name()))" as="xs:string*"/>
<xsl:variable name="query-string" select="'DESCRIBE $Type VALUES $Type { ' || string-join(for $uri in $property-uris return '&lt;' || $uri || '&gt;', ' ') || ' }'" as="xs:string"/>
<xsl:variable name="request-uri" select="ac:build-uri(resolve-uri('ns', $ldt:base), map{ 'query': $query-string, 'accept': 'application/rdf+xml' })" as="xs:anyURI"/>
Expand Down

0 comments on commit 3db40a5

Please sign in to comment.