Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>core</artifactId>
<version>5.0.4</version>
<version>5.0.5</version>
</dependency>
<dependency>
<!-- new Jena ontology API (org.apache.jena.ontapi); PrefixGraphRepository extends DocumentGraphRepository -->
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/com/atomgraph/client/ns.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix ldt: <https://www.w3.org/ns/ldt#> .

# ONTOLOGY

Expand All @@ -25,7 +24,6 @@
rdfs:isDefinedBy : .

:stylesheet a owl:ObjectProperty ;
rdfs:domain ldt:Application ;
rdfs:label "XSLT stylesheet" ;
rdfs:isDefinedBy : .

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ public void testOverlayHeadersSplitsCombinedLink()
// upstream sends one comma-joined Link line; each link-value must come out as its own header
// value, because Link.valueOf() (the writer's parser) only reads a single link-value
Response upstream = Response.ok().
header(HttpHeaders.LINK, "<https://remote.example/ns#>; rel=https://www.w3.org/ns/ldt#ontology, <https://remote.example/>; rel=https://www.w3.org/ns/ldt#base").
header(HttpHeaders.LINK, "<https://remote.example/ns#>; rel=https://example.org/ns#ontology, <https://remote.example/>; rel=https://example.org/ns#base").
build();

Response response = filter.overlayHeaders(Response.ok().build(), upstream, true);
List<Object> linkValues = response.getHeaders().get(HttpHeaders.LINK);

assertEquals(2, linkValues.size());
assertEquals("<https://remote.example/ns#>; rel=https://www.w3.org/ns/ldt#ontology", linkValues.get(0).toString());
assertEquals("<https://remote.example/>; rel=https://www.w3.org/ns/ldt#base", linkValues.get(1).toString());
assertEquals("<https://remote.example/ns#>; rel=https://example.org/ns#ontology", linkValues.get(0).toString());
assertEquals("<https://remote.example/>; rel=https://example.org/ns#base", linkValues.get(1).toString());
}

@Test
Expand Down