The service OntologyService requests ontology information from Knora, using its v2 complex ontology routes.
Methods
getOntologiesMetadata(): Observable<ApiServiceResult>: Requests information about all ontologies from Knora.
getAllEntityDefinitionsForOntologies(ontologyIri: string): Observable<ApiServiceResult>: Requests a whole ontology (all its classes and properties) from Knora.
getResourceClasses(resourceClassIris: Array<string>): Observable<ApiServiceResult>: Requests resource class definitions from Knora.
getProperties(propertyIris: string[]): Observable<ApiServiceResult>: Requests property definitions from Knora.
Please see https://docs.knora.orgKnora API v2 -> Querying, Creating, and Updating Ontologies -> Querying Ontology Information for more information about the response formats.
OntologyService
Scope
The service
OntologyService
requests ontology information from Knora, using its v2 complex ontology routes.Methods
getOntologiesMetadata(): Observable<ApiServiceResult>
: Requests information about all ontologies from Knora.getAllEntityDefinitionsForOntologies(ontologyIri: string): Observable<ApiServiceResult>
: Requests a whole ontology (all its classes and properties) from Knora.getResourceClasses(resourceClassIris: Array<string>): Observable<ApiServiceResult>
: Requests resource class definitions from Knora.getProperties(propertyIris: string[]): Observable<ApiServiceResult>
: Requests property definitions from Knora.Please see https://docs.knora.org
Knora API v2
->Querying, Creating, and Updating Ontologies
->Querying Ontology Information
for more information about the response formats.