Skip to content

Commit 2d88784

Browse files
committed
ldh:href function fixes
1 parent e7b90bc commit 2d88784

File tree

2 files changed

+3
-8
lines changed
  • src/main
    • resources/com/atomgraph/linkeddatahub
    • webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/imports

2 files changed

+3
-8
lines changed

src/main/resources/com/atomgraph/linkeddatahub/lapp.ttl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@
8787
rdfs:label "Missing base URI" ;
8888
sp:arg1 ldt:base
8989
] ;
90-
#[ a ldh:MissingPropertyValue ;
91-
# rdfs:label "Missing SPARQL service" ;
92-
# sp:arg1 ldt:service
93-
#] ;
9490
rdfs:label "Application" ;
9591
rdfs:comment "An application represents a data space identified by its base URI, in which application resource URIs are relative to the base URI. The only application interface (API) is read-write RESTful Linked data, backed by an RDF dataset accessible as a SPARQL 1.1 service. Application structure is defined in an ontology, which can import other ontologies." ;
9692
rdfs:isDefinedBy : .
@@ -102,8 +98,7 @@
10298
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
10399
104100
CONSTRUCT {
105-
$this ldt:base [ a rdfs:Resource ] ;
106-
ldt:service [ a ldh:Service ] .
101+
$this ldt:base [ a rdfs:Resource ] .
107102
}
108103
WHERE {
109104
}""" ;

src/main/webapp/static/com/atomgraph/linkeddatahub/xsl/bootstrap/2.3.2/imports/default.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ exclude-result-prefixes="#all"
118118
<!-- proxy external URI/graph -->
119119
<xsl:when test="$uri and $graph">
120120
<xsl:variable name="fragment" select="if ($fragment) then $fragment else encode-for-uri($uri)" as="xs:string?"/>
121-
<xsl:sequence select="xs:anyURI(ac:build-uri($absolute-path, map:merge((map{ 'uri': string($uri), 'graph': string($graph) }, $query-params))) || (if ($fragment) then ('#' || $fragment) else ()))"/>
121+
<xsl:sequence select="xs:anyURI(ac:build-uri($base, map:merge((map{ 'uri': string($uri), 'graph': string($graph) }, $query-params))) || (if ($fragment) then ('#' || $fragment) else ()))"/>
122122
</xsl:when>
123123
<!-- proxy external URI -->
124124
<xsl:when test="$uri">
125125
<xsl:variable name="fragment" select="if ($fragment) then $fragment else encode-for-uri($uri)" as="xs:string?"/>
126-
<xsl:sequence select="xs:anyURI(ac:build-uri($absolute-path, map:merge((map{ 'uri': string($uri) }, $query-params))) || (if ($fragment) then ('#' || $fragment) else ()))"/>
126+
<xsl:sequence select="xs:anyURI(ac:build-uri($base, map:merge((map{ 'uri': string($uri) }, $query-params))) || (if ($fragment) then ('#' || $fragment) else ()))"/>
127127
</xsl:when>
128128
<!-- no URI supplied -->
129129
<xsl:otherwise>

0 commit comments

Comments
 (0)