Apache Stanbol OntoNet scope manager
Scope ManagerThis is the start page of the ontology scope manager.
Registered Scopes
Name | Status | Comment | #Ontologies |
---|
Service Endpoints
Subresource ontonet/ontology
Service to get/clear the set of registered and/or active ontology scopes.
GET ontonet/ontology
Description | Service to get the set of registered and/or active ontology scopes |
---|---|
Request | GET /ontonet/ontology |
Parameter | with-inactive : include registered inactive scopes (optional, default is false) |
Produces | An ontology. Format depends on requested media type |
Example
curl -H "Accept:application/rdf+xml" "http://wit.istc.cnr.it:9090/ontonet/ontology?with-inactive=true
DELETE ontonet/ontology
Description | Service to clear all ontology scopes and stored ontologies |
---|---|
Request | DELETE /ontonet/ontology |
Parameters | none |
Produces | nothing |
Example
curl -X DELETE "http://wit.istc.cnr.it:9090/ontonet/ontology
Subresource ontonet/ontology/{scopeName}
Service for full CRUD operations on ontology scopes.
GET ontonet/ontology/{scopeName}
Description | Service to get the root ontology of the scope. |
---|---|
Request | GET /ontonet/ontology/{scopeName} |
Parameters | none |
Produces | An ontology. Format depends on requested media type. 404 if the scope does not exist. |
Example
curl -H "Accept:application/rdf+xml" "http://wit.istc.cnr.it:9090/ontonet/ontology/User
POST ontonet/ontology/{scopeName}
Description | Service to load an ontology into the custom space of the scope. |
---|---|
Request | POST /ontonet/ontology/ {scopeName}
Content types : application/owl+xml , application/rdf+json ,
application/rdf+xml , application/x-turtle ,
multipart/form-data , text/owl-functional ,
text/owl-manchester , text/plain ,
text/rdf+n3 , text/rdf+nt , text/turtle
|
Parameters |
For multipart/form-data content:
For text/plain content: will be interpreted as url .
For any other content type: will be interpreted as file .
Limitations:
|
Response |
|
Examples
Load and store the SKOS thesaurus of ISO 3166-1 country codes into a scope that manages Geographical content.curl -X POST -F "url=http://eulersharp.sourceforge.net/2003/03swap/countries" http://wit.istc.cnr.it:9090/ontonet/ontology/Geographicalor
curl -H "Content-type: text/plain" -d http://eulersharp.sourceforge.net/2003/03swap/countries http://wit.istc.cnr.it:9090/ontonet/ontology/Geographical
Load an ontology from local file acme-hierarchy.owl in the scope about the ACME organization, knowing the file is in RDF/XML format.
curl -X POST -F file=@acme-hierarchy.owl -F format=application/rdf+xml http://wit.istc.cnr.it:9090/ontonet/ontology/ACMEor
curl -H "Content-type: application/rdf+xml" -d @acme-hierarchy.owl http://wit.istc.cnr.it:9090/ontonet/ontology/ACME
PUT ontonet/ontology/{scopeName}
Description | Service to get the root ontology of the scope. |
---|---|
Request | PUT /ontonet/ontology/ {scopeName} |
Parameters | corereg : the physical URL of the registry that points to the ontologies to be loaded into the core space.
This parameter overrides coreont if both are specified.
|
coreont : the physical URL of the top ontology to be loaded into the core space.
This parameter is ignored if corereg is specified.
|
|
activate : If true , the ontology scope will be set as active upon creation.
This parameter is optional, default is false .<
/td>
| |
Response |
|
Example
curl -X PUT "http://wit.istc.cnr.it:9090/ontonet/ontology/User?corereg=[registry_location]&customont=[ontology_location]
DELETE ontonet/ontology/{scopeName}
Description | Unregisters the ontology scope and unloads its resources, but does not necessarily delete its ontologies. |
---|---|
Request | DELETE /ontonet/ontology/ {scopeName} |
Parameters | None. |
Response |
|
Example
curl -X DELETE "http://wit.istc.cnr.it:9090/ontonet/ontology/Users