Class MetadataRegistryController

java.lang.Object
it.uniroma2.art.semanticturkey.mdr.services.controllers.MetadataRegistryController
All Implemented Interfaces:
IntrospectableController, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller public class MetadataRegistryController extends Object implements org.springframework.context.ApplicationContextAware, IntrospectableController
  • Constructor Details

    • MetadataRegistryController

      public MetadataRegistryController()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext arg0) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getServiceSpecies

      public ServiceSpecies getServiceSpecies()
      Specified by:
      getServiceSpecies in interface IntrospectableController
    • getService

      public MetadataRegistry getService()
      Specified by:
      getService in interface IntrospectableController
    • removeSPARQLEndpointLimitationPublished

      @RequestMapping(value="/MetadataRegistry/removeSPARQLEndpointLimitation", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> removeSPARQLEndpointLimitationPublished(@RequestParam("endpoint") org.eclipse.rdf4j.model.IRI endpoint, @RequestParam("limitation") org.eclipse.rdf4j.model.IRI limitation) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • deleteCatalogRecordPublished

      @RequestMapping(value="/MetadataRegistry/deleteCatalogRecord", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteCatalogRecordPublished(@RequestParam("catalogRecord") org.eclipse.rdf4j.model.IRI catalogRecord) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • deleteEmbeddedLexicalizationSetPublished

      @RequestMapping(value="/MetadataRegistry/deleteEmbeddedLexicalizationSet", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteEmbeddedLexicalizationSetPublished(@RequestParam("lexicalizationSet") org.eclipse.rdf4j.model.IRI lexicalizationSet) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryStateException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryStateException
    • discoverDatasetMetadataPublished

      @RequestMapping(value="/MetadataRegistry/discoverDatasetMetadata", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<it.uniroma2.art.semanticturkey.mdr.core.DatasetMetadata>> discoverDatasetMetadataPublished(@RequestParam("iri") org.eclipse.rdf4j.model.IRI iri) throws ProjectAccessException, DeniedOperationException, it.uniroma2.art.semanticturkey.mdr.core.MetadataDiscoveryException
      Throws:
      ProjectAccessException
      DeniedOperationException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataDiscoveryException
    • spawnNewAbstractDatasetPublished

      @RequestMapping(value="/MetadataRegistry/spawnNewAbstractDataset", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>> spawnNewAbstractDatasetPublished(@RequestParam("dataset1") org.eclipse.rdf4j.model.IRI dataset1, @RequestParam("abstractDatasetAttachment1") @JsonSerialized it.uniroma2.art.semanticturkey.mdr.core.AbstractDatasetAttachment abstractDatasetAttachment1, @RequestParam("dataset2") org.eclipse.rdf4j.model.IRI dataset2, @RequestParam("abstractDatasetAttachment2") @JsonSerialized it.uniroma2.art.semanticturkey.mdr.core.AbstractDatasetAttachment abstractDatasetAttachment2, @RequestParam("datasetLocalName") String datasetLocalName, @RequestParam("uriSpace") String uriSpace, @RequestParam(value="title",required=false) org.eclipse.rdf4j.model.Literal title, @RequestParam(value="description",required=false) org.eclipse.rdf4j.model.Literal description, @RequestParam(value="dereferenceable",required=false) Boolean dereferenceable) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • getEmbeddedLinksetsPublished

      @RequestMapping(value="/MetadataRegistry/getEmbeddedLinksets", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<it.uniroma2.art.semanticturkey.mdr.core.LinksetMetadata>>> getEmbeddedLinksetsPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam(value="treshold",required=false,defaultValue="0") long treshold, @RequestParam(value="coalesce",required=false,defaultValue="false") boolean coalesce)
    • getComputedLexicalizationModelPublished

      @RequestMapping(value="/MetadataRegistry/getComputedLexicalizationModel", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<org.eclipse.rdf4j.model.IRI>> getComputedLexicalizationModelPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset) throws it.uniroma2.art.maple.orchestration.AssessmentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.maple.orchestration.AssessmentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • listRootDatasetsPublished

      @RequestMapping(value="/MetadataRegistry/listRootDatasets", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<it.uniroma2.art.semanticturkey.mdr.core.CatalogRecord2>>> listRootDatasetsPublished()
    • addEmbeddedLexicalizationSetPublished

      @RequestMapping(value="/MetadataRegistry/addEmbeddedLexicalizationSet", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> addEmbeddedLexicalizationSetPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam(value="lexicalizationSet",required=false) org.eclipse.rdf4j.model.IRI lexicalizationSet, @RequestParam(value="lexiconDataset",required=false) org.eclipse.rdf4j.model.IRI lexiconDataset, @RequestParam("lexicalizationModel") org.eclipse.rdf4j.model.IRI lexicalizationModel, @RequestParam("language") String language, @RequestParam(value="references",required=false) BigInteger references, @RequestParam(value="lexicalEntries",required=false) BigInteger lexicalEntries, @RequestParam(value="lexicalizations",required=false) BigInteger lexicalizations, @RequestParam(value="percentage",required=false) BigDecimal percentage, @RequestParam(value="avgNumOfLexicalizations",required=false) BigDecimal avgNumOfLexicalizations) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • setDescriptionPublished

      @RequestMapping(value="/MetadataRegistry/setDescription", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setDescriptionPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam("description") org.eclipse.rdf4j.model.Literal description) throws IllegalArgumentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      IllegalArgumentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • discoverDatasetPublished

      @RequestMapping(value="/MetadataRegistry/discoverDataset", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>> discoverDatasetPublished(@RequestParam("iri") org.eclipse.rdf4j.model.IRI iri) throws ProjectAccessException, DeniedOperationException, it.uniroma2.art.semanticturkey.mdr.core.MetadataDiscoveryException
      Throws:
      ProjectAccessException
      DeniedOperationException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataDiscoveryException
    • findDatasetForProjectsPublished

      @RequestMapping(value="/MetadataRegistry/findDatasetForProjects", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Map<String,AnnotatedValue<org.eclipse.rdf4j.model.IRI>>>> findDatasetForProjectsPublished(@RequestParam("projects") List<Project> projects)
    • getClassPartitionsPublished

      @RequestMapping(value="/MetadataRegistry/getClassPartitions", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Map<String,Integer>>> getClassPartitionsPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset)
    • deleteDescriptionPublished

      @RequestMapping(value="/MetadataRegistry/deleteDescription", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteDescriptionPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam(value="description",required=false) org.eclipse.rdf4j.model.Literal description) throws IllegalArgumentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      IllegalArgumentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • getDatasetMetadataPublished

      @RequestMapping(value="/MetadataRegistry/getDatasetMetadata", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<it.uniroma2.art.semanticturkey.mdr.core.DatasetMetadata>> getDatasetMetadataPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset) throws it.uniroma2.art.semanticturkey.mdr.core.NoSuchDatasetMetadataException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryStateException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.NoSuchDatasetMetadataException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryStateException
    • findDatasetPublished

      @RequestMapping(value="/MetadataRegistry/findDataset", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<ResourcePosition>> findDatasetPublished(@RequestParam("iri") org.eclipse.rdf4j.model.IRI iri) throws ProjectAccessException
      Throws:
      ProjectAccessException
    • setSPARQLEndpointLimitationPublished

      @RequestMapping(value="/MetadataRegistry/setSPARQLEndpointLimitation", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setSPARQLEndpointLimitationPublished(@RequestParam("endpoint") org.eclipse.rdf4j.model.IRI endpoint, @RequestParam("limitation") org.eclipse.rdf4j.model.IRI limitation) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • findProjectForDatasetsPublished

      @RequestMapping(value="/MetadataRegistry/findProjectForDatasets", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Map<org.eclipse.rdf4j.model.IRI,String>>> findProjectForDatasetsPublished(@RequestParam("datasets") List<org.eclipse.rdf4j.model.IRI> datasets, @RequestParam(value="allowSubset",required=false) boolean allowSubset)
    • setTitlePublished

      @RequestMapping(value="/MetadataRegistry/setTitle", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setTitlePublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam("title") org.eclipse.rdf4j.model.Literal title) throws IllegalArgumentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      IllegalArgumentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • createConcreteDatasetPublished

      @RequestMapping(value="/MetadataRegistry/createConcreteDataset", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<AnnotatedValue<org.eclipse.rdf4j.model.IRI>>> createConcreteDatasetPublished(@RequestParam("datasetLocalName") String datasetLocalName, @RequestParam("uriSpace") String uriSpace, @RequestParam(value="title",required=false) org.eclipse.rdf4j.model.Literal title, @RequestParam(value="description",required=false) org.eclipse.rdf4j.model.Literal description, @RequestParam(value="dereferenceable",required=false) Boolean dereferenceable, @RequestParam(value="distribution",required=false) @JsonSerialized it.uniroma2.art.semanticturkey.mdr.core.Distribution distribution, @RequestParam(value="abstractDatasetAttachment",required=false) @JsonSerialized it.uniroma2.art.semanticturkey.mdr.core.AbstractDatasetAttachment abstractDatasetAttachment) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • setSPARQLEndpointPublished

      @RequestMapping(value="/MetadataRegistry/setSPARQLEndpoint", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setSPARQLEndpointPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam(value="endpoint",required=false) org.eclipse.rdf4j.model.IRI endpoint) throws IllegalArgumentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      IllegalArgumentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • deleteTitlePublished

      @RequestMapping(value="/MetadataRegistry/deleteTitle", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> deleteTitlePublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam(value="title",required=false) org.eclipse.rdf4j.model.Literal title) throws IllegalArgumentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      IllegalArgumentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • connectToAbstractDatasetPublished

      @RequestMapping(value="/MetadataRegistry/connectToAbstractDataset", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> connectToAbstractDatasetPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam("abstractDatasetAttachment") @JsonSerialized it.uniroma2.art.semanticturkey.mdr.core.AbstractDatasetAttachment abstractDatasetAttachment) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • disconnectFromAbstractDatasetPublished

      @RequestMapping(value="/MetadataRegistry/disconnectFromAbstractDataset", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> disconnectFromAbstractDatasetPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam("abstractDataset") org.eclipse.rdf4j.model.IRI abstractDataset) throws it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • getSPARQLEndpointLimitationsPublished

      @RequestMapping(value="/MetadataRegistry/getSPARQLEndpointLimitations", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<org.eclipse.rdf4j.model.IRI>>> getSPARQLEndpointLimitationsPublished(@RequestParam("endpoint") org.eclipse.rdf4j.model.IRI endpoint)
    • setDereferenciabilityPublished

      @RequestMapping(value="/MetadataRegistry/setDereferenciability", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> setDereferenciabilityPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset, @RequestParam(value="value",required=false) Boolean value) throws IllegalArgumentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      IllegalArgumentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • getEmbeddedLexicalizationSetsPublished

      @RequestMapping(value="/MetadataRegistry/getEmbeddedLexicalizationSets", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<it.uniroma2.art.semanticturkey.mdr.core.LexicalizationSetMetadata>>> getEmbeddedLexicalizationSetsPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset)
    • listConnectedDatasetsPublished

      @RequestMapping(value="/MetadataRegistry/listConnectedDatasets", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<it.uniroma2.art.semanticturkey.mdr.core.CatalogRecord2>>> listConnectedDatasetsPublished(@RequestParam("abstractDataset") org.eclipse.rdf4j.model.IRI abstractDataset)
    • assessLexicalizationModelPublished

      @RequestMapping(value="/MetadataRegistry/assessLexicalizationModel", method=POST, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<String> assessLexicalizationModelPublished(@RequestParam("dataset") org.eclipse.rdf4j.model.IRI dataset) throws it.uniroma2.art.maple.orchestration.AssessmentException, it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
      Throws:
      it.uniroma2.art.maple.orchestration.AssessmentException
      it.uniroma2.art.semanticturkey.mdr.core.MetadataRegistryWritingException
    • findDatasetsPublished

      @RequestMapping(value="/MetadataRegistry/findDatasets", method=GET, produces="application/json;charset=UTF-8") public org.springframework.http.HttpEntity<Response<Collection<ResourcePosition>>> findDatasetsPublished(@RequestParam("iri") org.eclipse.rdf4j.model.IRI iri) throws ProjectAccessException
      Throws:
      ProjectAccessException