diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl index 8bb025c9a..dd377cc65 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/block.xsl @@ -653,12 +653,15 @@ exclude-result-prefixes="#all" - + + if (map:contains($context, 'object-uris')) then $context('object-uris') + else + let $response := $context($response-key) + return if ($response?status = 200 and $response?media-type = 'application/rdf+xml') + then distinct-values($response?body/rdf:RDF/rdf:Description/*/@rdf:resource[not(key('resources', .))]) + else ()"/> @@ -704,11 +707,14 @@ exclude-result-prefixes="#all" - + + if (map:contains($context, 'property-uris')) then $context('property-uris') + else + let $response := $context($response-key) + return if ($response?status = 200 and $response?media-type = 'application/rdf+xml') + then distinct-values($response?body/rdf:RDF/rdf:Description/*/concat(namespace-uri(), local-name())) + else ()"/> diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl index 300ab0355..0e1eb5424 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/form.xsl @@ -185,12 +185,7 @@ WHERE - - - - - - + @@ -262,26 +257,56 @@ WHERE 'block': $block, 'about': $about }"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -306,11 +331,16 @@ WHERE + + 'types': $types, + 'property-uris': distinct-values($resource/*/concat(namespace-uri(), local-name())), + 'object-uris': distinct-values($resource/*/@rdf:resource[not(key('resources', .))]), + 'document': ., + 'action': if (map:contains($context, 'action')) then $context('action') else ldh:href(ac:absolute-path(ldh:base-uri(.)), map{}) + }), map{ 'duplicates': 'use-last' })"/> @@ -331,34 +361,8 @@ WHERE - - - - - - - - - - - - - - - - - - + - @@ -366,23 +370,6 @@ WHERE - - - - - - - - - - - - - - @@ -522,7 +509,7 @@ WHERE - + @@ -555,43 +542,15 @@ WHERE - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -603,7 +562,53 @@ WHERE - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -679,10 +684,12 @@ WHERE + @@ -717,7 +724,7 @@ WHERE - + @@ -944,28 +951,31 @@ WHERE $context, map{ 'body': $body, - 'types': $types + 'types': $types, + 'endpoint': sd:endpoint(), + 'property-uris': distinct-values($body/rdf:RDF/*[not(@rdf:about = $doc-uri)]/*/concat(namespace-uri(), local-name())), + 'object-uris': distinct-values($body/rdf:RDF/*/*/@rdf:resource[not(key('resources', .))]) } ), map{ 'duplicates': 'use-last' })"/> + + ixsl:then(ldh:render-row-form-violation#1) => + ixsl:finally(ldh:reset-cursor#0)" on-failure="ldh:promise-failure#1"/> + All metadata is fetched async by the upstream chain steps; this function just reads from context. --> @@ -975,25 +985,10 @@ WHERE - - - - - - - - - - - - - - - - - - - + + + + @@ -1018,8 +1013,6 @@ WHERE - - @@ -1292,7 +1285,8 @@ WHERE 'constructed-doc': $merged-doc, 'shapes': $shapes, 'resource': $resource, - 'types': $types + 'types': $types, + 'property-uris': distinct-values($resource/*/concat(namespace-uri(), local-name())) }), map{ 'duplicates': 'use-last' })"/> @@ -1307,26 +1301,15 @@ WHERE + + + - - - - - - - - - - - - - - @@ -1354,8 +1337,6 @@ WHERE - - @@ -1403,20 +1384,19 @@ WHERE }"/> + ixsl:then(ldh:render-typeahead-row-form#1) => + ixsl:finally(ldh:reset-cursor#0)" on-failure="ldh:promise-failure#1"/> diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl index b6a10f23c..e55d06da5 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/functions.xsl @@ -589,6 +589,52 @@ exclude-result-prefixes="#all" + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/modal.xsl b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/modal.xsl index 13ff91b6f..2efd4205a 100644 --- a/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/modal.xsl +++ b/src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/client/modal.xsl @@ -732,6 +732,20 @@ LIMIT 10 Reads context('constructed-doc') as the async-fetched SPIN-construction; the remaining sync document() calls for type-metadata/property-metadata/constraints are scope for a follow-up refactor. --> + + + + + + + + + + @@ -739,26 +753,13 @@ LIMIT 10 + + + - - - - - - - - - - - - - - - - @@ -777,7 +778,7 @@ LIMIT 10 -