-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: #473: support Json-LD 1.1 framing + create LdiRdfWriter once per…
… pipeline. (#541) Co-authored-by: Yalz <Yalz@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
139 additions
and
61 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...ain/java/be/vlaanderen/informatievlaanderen/ldes/ldi/exceptions/JsonLDFrameException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package be.vlaanderen.informatievlaanderen.ldes.ldi.exceptions; | ||
|
||
public class JsonLDFrameException extends RuntimeException { | ||
public JsonLDFrameException(Exception e) { | ||
super(e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
ldi-core/ldi-common/src/test/resources/rdf/formatter/expected/logisticslocation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"@context": "https://geojson.org/geojson-ld/geojson-context.jsonld", | ||
"id": "https://vocabulary.uncefact.org/identifier/node/1/1", | ||
"type": "https://vocabulary.uncefact.org/LogisticsLocation", | ||
"http://purl.org/dc/terms/isVersionOf": "unece:identifier/node/1", | ||
"http://www.w3.org/ns/prov#generatedAtTime": { | ||
"type": "http://www.w3.org/2001/XMLSchema#dateTime", | ||
"@value": "2020-05-20T10:00:00Z" | ||
}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
4.9041, | ||
52.3676 | ||
] | ||
}, | ||
"https://vocabulary.uncefact.org/name": { | ||
"type": "http://www.w3.org/2001/XMLSchema#string", | ||
"@value": "k1700" | ||
}, | ||
"https://vocabulary.uncefact.org/servicingSpecifiedParty": { | ||
"id": "https://vocabulary.uncefact.org/identifier/servicingSpecifiedParty/1", | ||
"type": "https://vocabulary.uncefact.org/LocationParty", | ||
"https://vocabulary.uncefact.org/name": { | ||
"type": "http://www.w3.org/2001/XMLSchema#string", | ||
"@value": "DP-World" | ||
} | ||
}, | ||
"https://vocabulary.uncefact.org/statusCode": { | ||
"type": "http://www.w3.org/2001/XMLSchema#string", | ||
"@value": "0" | ||
} | ||
} |
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
ldi-core/ldi-common/src/test/resources/rdf/formatter/logisticslocation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"@context": [ | ||
"https://vocabulary.uncefact.org/unece-context.jsonld", | ||
"https://geojson.org/geojson-ld/geojson-context.jsonld", | ||
{ | ||
"isVersionOf": "http://purl.org/dc/terms/isVersionOf", | ||
"generatedAtTime": { | ||
"@id": "http://www.w3.org/ns/prov#generatedAtTime", | ||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" | ||
} | ||
} | ||
], | ||
"type": "LogisticsLocation", | ||
"isVersionOf": "unece:identifier/node/1", | ||
"generatedAtTime": "2020-05-20T10:00:00Z", | ||
"id": "unece:identifier/node/1/1", | ||
"name": "k1700", | ||
"statusCode": "0", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
4.9041, | ||
52.3676 | ||
] | ||
}, | ||
"servicingSpecifiedParty": { | ||
"type": "LocationParty", | ||
"id": "unece:identifier/servicingSpecifiedParty/1", | ||
"name": "DP-World" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters