Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor (webapi): Start refactoring StringFormatter to clarify use cases. * fix (webapi): Fix compile errors. * refactor (webapi): Add SmartIri class to simplify IRI manipulation. * refactor (webapi): Separate IRI conversions from generation of JSON-LD in ontology classes. - Use SmartIri in constant ontologies, too. - Fix a lot of compile errors (still many left). * refactor (webapi): Use SmartIri for ontology and entity IRIs in API v2. - Separate ontology info schema conversion from JSON-LD generation. * feature (webapi): Cache SmartIri instances for better performance. * refactor (webapi): Simplify IRI parsing, removing regular expressions. - Remove IRI caching, because performance is good anyway. * fix (webapi): Fix bugs in IRI schema conversion. - Put back IRI caching, but only for Knora definition IRIs. - I think OntologyV2R2RSpec test data is wrong (has DatatypeProperty where it should have ObjectProperty). * fix (webapi): Fix more bugs in API schema conversions and in test data. * fix (webapi): Fix more parsing bugs and broken tests. * feature (webapi): Fix error-checking of IRIs in SearchParserV2. - Cache some known non-Knora definition IRIs. * refactor (webapi): Use SmartIri for resource classes in search messages. * feature (webapi): Require API v2 simple IRIs in KnarQL. * fix (webapi): Allow non-Knora IRIs in KnarQL, but not ApiV2WithValueObjects. * feature (webapi): Data IRIs don't get an ontology schema. - Don't parse new smart IRIs when it's not neceessary to do so. * test (webapi): Start making tests more specific for StringFormatter. * test (webapi): Improve SmartIri error checking and tests. * feature (webapi): Return ontology IRI and labels. * refactor (remove unnecessary code): remove dependent resource vars as order by criteria (deprecated) * feature (webapi): Support pattern matching with SmartIri. - Disable validation of ontology names until #667 is resolved. * fix (webapi): Fix various bugs related to IRI conversions. * docs (webapi): Add some design documentation about API v2, including SmartIri. - Remove old API v2 plans doc, which has already been implemented and superseded. - Add route for getting ontology metadata per project. - Add R2R tests for getting ontology metadata. - Rename "namedgraph" to "allentities" in ontology routes. - Add KnoraContentV2 trait with toOntologySchema method. * tests (KnarQL): get pages of a book ordered by their seqnum * test (KnarQL R2R): add JSON-LD test data for test * test (KnarQL R2R): add tests to get the next OFFSET * tests (KnarQL R2R): add JSON-LD test data * fix (KnarQL query): always inster statement for start JDN sicne it may be used for sorting * tests (KnarQL): add JSON-LD test data * tests (KnarQL): add JSON-LD test data * tests (KnarQL): add JSON-LD test data * tests (KnarQL): add JSON-LD test data * tests (KnarQL): add JSON-LD test data * tests (KnarQL): add JSON-LD test data * tests (KnarQL): add JSON-LD test data * docs (webapi): Fix typos.
- Loading branch information