Class ClassesController
java.lang.Object
it.uniroma2.art.semanticturkey.services.core.controllers.ClassesController
- All Implemented Interfaces:
IntrospectableController
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Controller
public class ClassesController
extends Object
implements org.springframework.context.ApplicationContextAware, IntrospectableController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpEntity<String>
addIntersectionOfPublished
(org.eclipse.rdf4j.model.IRI cls, List<String> clsDescriptions) org.springframework.http.HttpEntity<String>
addOneOfPublished
(org.eclipse.rdf4j.model.IRI cls, List<org.eclipse.rdf4j.model.IRI> individuals) org.springframework.http.HttpEntity<String>
addSuperClsPublished
(org.eclipse.rdf4j.model.IRI cls, org.eclipse.rdf4j.model.IRI supercls) org.springframework.http.HttpEntity<String>
addUnionOfPublished
(org.eclipse.rdf4j.model.IRI cls, List<String> clsDescriptions) org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>
createClassPublished
(org.eclipse.rdf4j.model.IRI newClass, org.eclipse.rdf4j.model.IRI superClass, org.eclipse.rdf4j.model.IRI classType, CustomFormValue customFormValue) org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>
createInstancePublished
(org.eclipse.rdf4j.model.IRI newInstance, org.eclipse.rdf4j.model.IRI cls, CustomFormValue customFormValue) org.springframework.http.HttpEntity<String>
deleteClassPublished
(org.eclipse.rdf4j.model.IRI cls) org.springframework.http.HttpEntity<String>
deleteInstancePublished
(org.eclipse.rdf4j.model.IRI instance) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>>
getClassesInfoPublished
(org.eclipse.rdf4j.model.IRI[] classList, boolean numInst) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>>
getInstancesPublished
(org.eclipse.rdf4j.model.IRI cls, boolean includeNonDirect) getNumberOfInstancesPublished
(org.eclipse.rdf4j.model.IRI cls, boolean includeNonDirect) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>>
getSubClassesPublished
(org.eclipse.rdf4j.model.IRI superClass, boolean numInst) org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>>
getSuperClassesPublished
(org.eclipse.rdf4j.model.IRI cls) org.springframework.http.HttpEntity<String>
removeIntersectionOfPublished
(org.eclipse.rdf4j.model.IRI cls, org.eclipse.rdf4j.model.BNode collectionBNode) org.springframework.http.HttpEntity<String>
removeOneOfPublished
(org.eclipse.rdf4j.model.IRI cls, org.eclipse.rdf4j.model.BNode collectionBNode) org.springframework.http.HttpEntity<String>
removeSuperClsPublished
(org.eclipse.rdf4j.model.IRI cls, org.eclipse.rdf4j.model.IRI supercls) org.springframework.http.HttpEntity<String>
removeUnionOfPublished
(org.eclipse.rdf4j.model.IRI cls, org.eclipse.rdf4j.model.BNode collectionBNode) void
setApplicationContext
(org.springframework.context.ApplicationContext arg0)
-
Constructor Details
-
ClassesController
public ClassesController()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getServiceSpecies
- Specified by:
getServiceSpecies
in interfaceIntrospectableController
-
getService
- Specified by:
getService
in interfaceIntrospectableController
-
addSuperClsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/addSuperCls", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addSuperClsPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("supercls") org.eclipse.rdf4j.model.IRI supercls) -
getInstancesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/getInstances", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>> getInstancesPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam(value="includeNonDirect",required=false,defaultValue="false") boolean includeNonDirect) -
createInstancePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/createInstance", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>> createInstancePublished(@RequestParam(value="newInstance",required=false) org.eclipse.rdf4j.model.IRI newInstance, @RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam(value="customFormValue",required=false) CustomFormValue customFormValue) throws CODAException, CustomFormException - Throws:
CODAException
CustomFormException
-
addUnionOfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/addUnionOf", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addUnionOfPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("clsDescriptions") List<String> clsDescriptions) throws ManchesterParserException, ManchesterSyntacticException, ManchesterPrefixNotDefinedException -
removeIntersectionOfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/removeIntersectionOf", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeIntersectionOfPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("collectionBNode") org.eclipse.rdf4j.model.BNode collectionBNode) -
removeOneOfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/removeOneOf", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeOneOfPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("collectionBNode") org.eclipse.rdf4j.model.BNode collectionBNode) -
getSuperClassesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/getSuperClasses", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>> getSuperClassesPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls) -
getNumberOfInstancesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/getNumberOfInstances", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Integer>> getNumberOfInstancesPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam(value="includeNonDirect",required=false,defaultValue="false") boolean includeNonDirect) -
removeUnionOfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/removeUnionOf", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeUnionOfPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("collectionBNode") org.eclipse.rdf4j.model.BNode collectionBNode) -
removeSuperClsPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/removeSuperCls", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeSuperClsPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("supercls") org.eclipse.rdf4j.model.IRI supercls) -
getClassesInfoPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/getClassesInfo", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>> getClassesInfoPublished(@RequestParam("classList") org.eclipse.rdf4j.model.IRI[] classList, @RequestParam(value="numInst",required=false,defaultValue="true") boolean numInst) -
getSubClassesPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/getSubClasses", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<AnnotatedValue<org.eclipse.rdf4j.model.Resource>>>> getSubClassesPublished(@RequestParam("superClass") org.eclipse.rdf4j.model.IRI superClass, @RequestParam(value="numInst",required=false,defaultValue="true") boolean numInst) -
addOneOfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/addOneOf", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addOneOfPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("individuals") List<org.eclipse.rdf4j.model.IRI> individuals) -
addIntersectionOfPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/addIntersectionOf", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addIntersectionOfPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls, @RequestParam("clsDescriptions") List<String> clsDescriptions) throws ManchesterParserException, ManchesterSyntacticException, ManchesterPrefixNotDefinedException -
deleteInstancePublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/deleteInstance", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteInstancePublished(@RequestParam("instance") org.eclipse.rdf4j.model.IRI instance) -
deleteClassPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/deleteClass", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteClassPublished(@RequestParam("cls") org.eclipse.rdf4j.model.IRI cls) throws DeniedOperationException - Throws:
DeniedOperationException
-
createClassPublished
@RequestMapping(value="it.uniroma2.art.semanticturkey/st-core-services/Classes/createClass", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>> createClassPublished(@RequestParam(value="newClass",required=false) org.eclipse.rdf4j.model.IRI newClass, @RequestParam("superClass") org.eclipse.rdf4j.model.IRI superClass, @RequestParam(value="classType",required=false) org.eclipse.rdf4j.model.IRI classType, @RequestParam(value="customFormValue",required=false) CustomFormValue customFormValue) throws CODAException, CustomFormException - Throws:
CODAException
CustomFormException
-