-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return API v2 responses in Turtle and RDF/XML (#851)
* feature (webapi): Start implementing HTTP content negotation in API v2. * fix (docs): Fix docs build error on Travis. * feature (webapi): Add support for returning API v2 responses in Turtle. * fix (webapi): Fix deployment issues #853, #855. * fix (webapi): Use UTF-8 to read file resources. * feature (webapi): Use @graph instead of hasOntologies, etc. (ongoing) * feature (webapi): Replace hasOntologies with JSON-LD graph. * test (webapi): Add tests for serving ontologies in Turtle. * refactor (webapi): Refactor handling of RDF media types. - Use JSON-LD content type for JSON-LD responses. * feature (webapi): Return ontology responses in RDF/XML. - Simplify R2R ontology test code. - Make it easier to regenerate expected response files. * feature (webapi): Don't bother trying to return HTML. * refactor (webapi): Move some methods into JsonLDObject. * feature (webapi): Change resource responses to use JSON-LD graphs. * feature (webapi): Return resources in Turtle and RDF/XML. - Add datatypes where needed in responses in the simple schema. * docs (webapi): Update docs and release notes. * feature (webapi): Use simple prefix labels in responses when possible. * docs (knora-ontologies): Fix mistakes in salsah-gui doc. * tests (add test data) * test (webapi): Update tests to reflect new test data. * feature (webapi): Support q values in content negotiation. - Rename RouteUtilV2.runJsonRoute -> runRdfRoute. * fix (webapi): Store project shortcodes in upper case (#865). * fix (webapi): Don't treat application/xml as an RDF media type, to avoid returning it to browsers. * style (webapi): Fix typos. * refactor (webapi): Remove unnecessary method type parameter. * style (webapi): Improve comments. * refactor (webapi): Remove unnecessary pattern match. * test (webapi): Update tests. - Add tests for requesting lists in Turtle and RDF/XML. - Update sample resource responses in resourcesResponses.ts. * fix (fix test functions) * test (webapi): Try increasing timeout to prevent Travis test failures. * fix (webapi): Trim whitespace from elements of Accept header. * fix (webapi): Fix exception.
- Loading branch information
Benjamin Geer
authored
May 30, 2018
1 parent
f7bc611
commit 75152d5
Showing
163 changed files
with
37,791 additions
and
17,415 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -65,4 +65,3 @@ export module MappingFormats { | |
|
||
|
||
} | ||
|
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
2,451 changes: 1,062 additions & 1,389 deletions
2,451
docs/src/api-v2/samples/resourcesResponses.ts
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.