def organizations_id_put(id, user=None, organization=None): # noqa: E501 """Update an existing Organization Updates an existing Organization (more information in https://w3id.org/okn/o/sd#Organization) # noqa: E501 :param id: The ID of the Organization to be retrieved :type id: str :param user: Username :type user: str :param organization: An old Organizationto be updated :type organization: dict | bytes :rtype: Organization """ if connexion.request.is_json: organization = Organization.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=organization, rdf_type_uri=ORGANIZATION_TYPE_URI, rdf_type_name=ORGANIZATION_TYPE_NAME, kls=Organization)
def spatiallydistributedgrids_id_put(id, user=None, spatially_distributed_grid=None ): # noqa: E501 """Update an existing SpatiallyDistributedGrid Updates an existing SpatiallyDistributedGrid (more information in https://w3id.org/okn/o/sdm#SpatiallyDistributedGrid) # noqa: E501 :param id: The ID of the SpatiallyDistributedGrid to be retrieved :type id: str :param user: Username :type user: str :param spatially_distributed_grid: An old SpatiallyDistributedGridto be updated :type spatially_distributed_grid: dict | bytes :rtype: SpatiallyDistributedGrid """ if connexion.request.is_json: spatially_distributed_grid = SpatiallyDistributedGrid.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=spatially_distributed_grid, rdf_type_uri=SPATIALLYDISTRIBUTEDGRID_TYPE_URI, rdf_type_name=SPATIALLYDISTRIBUTEDGRID_TYPE_NAME, kls=SpatiallyDistributedGrid)
def standardvariables_id_put(id, user=None, standard_variable=None): # noqa: E501 """Update an existing StandardVariable Updates an existing StandardVariable (more information in https://w3id.org/okn/o/sd#StandardVariable) # noqa: E501 :param id: The ID of the StandardVariable to be retrieved :type id: str :param user: Username :type user: str :param standard_variable: An old StandardVariableto be updated :type standard_variable: dict | bytes :rtype: StandardVariable """ if connexion.request.is_json: standard_variable = StandardVariable.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=standard_variable, rdf_type_uri=STANDARDVARIABLE_TYPE_URI, rdf_type_name=STANDARDVARIABLE_TYPE_NAME, kls=StandardVariable)
def datasetspecifications_id_put(id, user=None, dataset_specification=None): # noqa: E501 """Update an existing DatasetSpecification Updates an existing DatasetSpecification (more information in https://w3id.org/okn/o/sd#DatasetSpecification) # noqa: E501 :param id: The ID of the DatasetSpecification to be retrieved :type id: str :param user: Username :type user: str :param dataset_specification: An old DatasetSpecificationto be updated :type dataset_specification: dict | bytes :rtype: DatasetSpecification """ if connexion.request.is_json: dataset_specification = DatasetSpecification.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=dataset_specification, rdf_type_uri=DATASETSPECIFICATION_TYPE_URI, rdf_type_name=DATASETSPECIFICATION_TYPE_NAME, kls=DatasetSpecification)
def modelconfigurationsetups_id_put(id, user=None, model_configuration_setup=None ): # noqa: E501 """Update an existing ModelConfigurationSetup Updates an existing ModelConfigurationSetup (more information in https://w3id.org/okn/o/sdm#ModelConfigurationSetup) # noqa: E501 :param id: The ID of the ModelConfigurationSetup to be retrieved :type id: str :param user: Username :type user: str :param model_configuration_setup: An old ModelConfigurationSetupto be updated :type model_configuration_setup: dict | bytes :rtype: ModelConfigurationSetup """ if connexion.request.is_json: model_configuration_setup = ModelConfigurationSetup.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=model_configuration_setup, rdf_type_uri=MODELCONFIGURATIONSETUP_TYPE_URI, rdf_type_name=MODELCONFIGURATIONSETUP_TYPE_NAME, kls=ModelConfigurationSetup)
def datatransformationsetups_id_put(id, user=None, data_transformation_setup=None ): # noqa: E501 """Update an existing DataTransformationSetup Updates an existing DataTransformationSetup (more information in https://w3id.org/okn/o/sd#DataTransformationSetup) # noqa: E501 :param id: The ID of the DataTransformationSetup to be retrieved :type id: str :param user: Username :type user: str :param data_transformation_setup: An old DataTransformationSetupto be updated :type data_transformation_setup: dict | bytes :rtype: DataTransformationSetup """ if connexion.request.is_json: data_transformation_setup = DataTransformationSetup.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=data_transformation_setup, rdf_type_uri=DATATRANSFORMATIONSETUP_TYPE_URI, rdf_type_name=DATATRANSFORMATIONSETUP_TYPE_NAME, kls=DataTransformationSetup)
def empiricalmodels_id_put(id, user=None, empirical_model=None): # noqa: E501 """Update an existing EmpiricalModel Updates an existing EmpiricalModel (more information in https://w3id.org/okn/o/sdm#EmpiricalModel) # noqa: E501 :param id: The ID of the EmpiricalModel to be retrieved :type id: str :param user: Username :type user: str :param empirical_model: An old EmpiricalModelto be updated :type empirical_model: dict | bytes :rtype: EmpiricalModel """ if connexion.request.is_json: empirical_model = EmpiricalModel.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=empirical_model, rdf_type_uri=EMPIRICALMODEL_TYPE_URI, rdf_type_name=EMPIRICALMODEL_TYPE_NAME, kls=EmpiricalModel)
def emulators_id_put(id, user=None, emulator=None): # noqa: E501 """Update an existing Emulator Updates an existing Emulator (more information in https://w3id.org/okn/o/sdm#Emulator) # noqa: E501 :param id: The ID of the Emulator to be retrieved :type id: str :param user: Username :type user: str :param emulator: An old Emulatorto be updated :type emulator: dict | bytes :rtype: Emulator """ if connexion.request.is_json: emulator = Emulator.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=emulator, rdf_type_uri=EMULATOR_TYPE_URI, rdf_type_name=EMULATOR_TYPE_NAME, kls=Emulator)
def geoshapes_id_put(id, user=None, geo_shape=None): # noqa: E501 """Update an existing GeoShape Updates an existing GeoShape (more information in https://w3id.org/okn/o/sdm#GeoShape) # noqa: E501 :param id: The ID of the GeoShape to be retrieved :type id: str :param user: Username :type user: str :param geo_shape: An old GeoShapeto be updated :type geo_shape: dict | bytes :rtype: GeoShape """ if connexion.request.is_json: geo_shape = GeoShape.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=geo_shape, rdf_type_uri=GEOSHAPE_TYPE_URI, rdf_type_name=GEOSHAPE_TYPE_NAME, kls=GeoShape)
def modelcategorys_id_put(id, user=None, model_category=None): # noqa: E501 """Update an existing ModelCategory Updates an existing ModelCategory (more information in https://w3id.org/okn/o/sdm#ModelCategory) # noqa: E501 :param id: The ID of the ModelCategory to be retrieved :type id: str :param user: Username :type user: str :param model_category: An old ModelCategoryto be updated :type model_category: dict | bytes :rtype: ModelCategory """ if connexion.request.is_json: model_category = ModelCategory.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=model_category, rdf_type_uri=MODELCATEGORY_TYPE_URI, rdf_type_name=MODELCATEGORY_TYPE_NAME, kls=ModelCategory)
def spatialresolutions_id_put(id, user=None, spatial_resolution=None): # noqa: E501 """Update an existing SpatialResolution Updates an existing SpatialResolution (more information in https://w3id.org/okn/o/sdm#SpatialResolution) # noqa: E501 :param id: The ID of the SpatialResolution to be retrieved :type id: str :param user: Username :type user: str :param spatial_resolution: An old SpatialResolutionto be updated :type spatial_resolution: dict | bytes :rtype: SpatialResolution """ if connexion.request.is_json: spatial_resolution = SpatialResolution.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=spatial_resolution, rdf_type_uri=SPATIALRESOLUTION_TYPE_URI, rdf_type_name=SPATIALRESOLUTION_TYPE_NAME, kls=SpatialResolution)
def variablepresentations_id_put(id, user=None, variable_presentation=None): # noqa: E501 """Update an existing VariablePresentation Updates an existing VariablePresentation (more information in https://w3id.org/okn/o/sd#VariablePresentation) # noqa: E501 :param id: The ID of the VariablePresentation to be retrieved :type id: str :param user: Username :type user: str :param variable_presentation: An old VariablePresentationto be updated :type variable_presentation: dict | bytes :rtype: VariablePresentation """ if connexion.request.is_json: variable_presentation = VariablePresentation.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=variable_presentation, rdf_type_uri=VARIABLEPRESENTATION_TYPE_URI, rdf_type_name=VARIABLEPRESENTATION_TYPE_NAME, kls=VariablePresentation)
def hybridmodels_id_put(id, user=None, hybrid_model=None): # noqa: E501 """Update an existing HybridModel Updates an existing HybridModel (more information in https://w3id.org/okn/o/sdm#HybridModel) # noqa: E501 :param id: The ID of the HybridModel to be retrieved :type id: str :param user: Username :type user: str :param hybrid_model: An old HybridModelto be updated :type hybrid_model: dict | bytes :rtype: HybridModel """ if connexion.request.is_json: hybrid_model = HybridModel.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=hybrid_model, rdf_type_uri=HYBRIDMODEL_TYPE_URI, rdf_type_name=HYBRIDMODEL_TYPE_NAME, kls=HybridModel)
def pointbasedgrids_id_put(id, user=None, point_based_grid=None): # noqa: E501 """Update an existing PointBasedGrid Updates an existing PointBasedGrid (more information in https://w3id.org/okn/o/sdm#PointBasedGrid) # noqa: E501 :param id: The ID of the PointBasedGrid to be retrieved :type id: str :param user: Username :type user: str :param point_based_grid: An old PointBasedGridto be updated :type point_based_grid: dict | bytes :rtype: PointBasedGrid """ if connexion.request.is_json: point_based_grid = PointBasedGrid.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=point_based_grid, rdf_type_uri=POINTBASEDGRID_TYPE_URI, rdf_type_name=POINTBASEDGRID_TYPE_NAME, kls=PointBasedGrid)
def parameters_id_put(id, user=None, parameter=None): # noqa: E501 """Update an existing Parameter Updates an existing Parameter (more information in https://w3id.org/okn/o/sd#Parameter) # noqa: E501 :param id: The ID of the Parameter to be retrieved :type id: str :param user: Username :type user: str :param parameter: An old Parameterto be updated :type parameter: dict | bytes :rtype: Parameter """ if connexion.request.is_json: parameter = Parameter.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=parameter, rdf_type_uri=PARAMETER_TYPE_URI, rdf_type_name=PARAMETER_TYPE_NAME, kls=Parameter)
def fundinginformations_id_put(id, user=None, funding_information=None): # noqa: E501 """Update an existing FundingInformation Updates an existing FundingInformation (more information in https://w3id.org/okn/o/sd#FundingInformation) # noqa: E501 :param id: The ID of the FundingInformation to be retrieved :type id: str :param user: Username :type user: str :param funding_information: An old FundingInformationto be updated :type funding_information: dict | bytes :rtype: FundingInformation """ if connexion.request.is_json: funding_information = FundingInformation.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource( id=id, user=user, body=funding_information, rdf_type_uri=FUNDINGINFORMATION_TYPE_URI, rdf_type_name=FUNDINGINFORMATION_TYPE_NAME, kls=FundingInformation)
def sourcecodes_id_put(id, user=None, source_code=None): # noqa: E501 """Update an existing SourceCode Updates an existing SourceCode (more information in https://w3id.org/okn/o/sd#SourceCode) # noqa: E501 :param id: The ID of the SourceCode to be retrieved :type id: str :param user: Username :type user: str :param source_code: An old SourceCodeto be updated :type source_code: dict | bytes :rtype: SourceCode """ if connexion.request.is_json: source_code = SourceCode.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=source_code, rdf_type_uri=SOURCECODE_TYPE_URI, rdf_type_name=SOURCECODE_TYPE_NAME, kls=SourceCode)
def timeintervals_id_put(id, user=None, time_interval=None): # noqa: E501 """Update an existing TimeInterval Updates an existing TimeInterval (more information in https://w3id.org/okn/o/sdm#TimeInterval) # noqa: E501 :param id: The ID of the TimeInterval to be retrieved :type id: str :param user: Username :type user: str :param time_interval: An old TimeIntervalto be updated :type time_interval: dict | bytes :rtype: TimeInterval """ if connexion.request.is_json: time_interval = TimeInterval.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=time_interval, rdf_type_uri=TIMEINTERVAL_TYPE_URI, rdf_type_name=TIMEINTERVAL_TYPE_NAME, kls=TimeInterval)
def samplecollections_id_put(id, user=None, sample_collection=None): # noqa: E501 """Update an existing SampleCollection Updates an existing SampleCollection (more information in https://w3id.org/okn/o/sd#SampleCollection) # noqa: E501 :param id: The ID of the SampleCollection to be retrieved :type id: str :param user: Username :type user: str :param sample_collection: An old SampleCollectionto be updated :type sample_collection: dict | bytes :rtype: SampleCollection """ if connexion.request.is_json: sample_collection = SampleCollection.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=sample_collection, rdf_type_uri=SAMPLECOLLECTION_TYPE_URI, rdf_type_name=SAMPLECOLLECTION_TYPE_NAME, kls=SampleCollection)
def interventions_id_put(id, user=None, intervention=None): # noqa: E501 """Update an existing Intervention Updates an existing Intervention (more information in https://w3id.org/okn/o/sdm#Intervention) # noqa: E501 :param id: The ID of the Intervention to be retrieved :type id: str :param user: Username :type user: str :param intervention: An old Interventionto be updated :type intervention: dict | bytes :rtype: Intervention """ if connexion.request.is_json: intervention = Intervention.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=intervention, rdf_type_uri=INTERVENTION_TYPE_URI, rdf_type_name=INTERVENTION_TYPE_NAME, kls=Intervention)
def constraints_id_put(id, user=None, constraint=None): # noqa: E501 """Update an existing Constraint Updates an existing Constraint (more information in https://w3id.org/okn/o/sd#Constraint) # noqa: E501 :param id: The ID of the Constraint to be retrieved :type id: str :param user: Username :type user: str :param constraint: An old Constraintto be updated :type constraint: dict | bytes :rtype: Constraint """ if connexion.request.is_json: constraint = Constraint.from_dict( connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=constraint, rdf_type_uri=CONSTRAINT_TYPE_URI, rdf_type_name=CONSTRAINT_TYPE_NAME, kls=Constraint)
def causaldiagrams_id_put(id, user=None, causal_diagram=None): # noqa: E501 """Update an existing CausalDiagram Updates an existing CausalDiagram (more information in https://w3id.org/okn/o/sdm#CausalDiagram) # noqa: E501 :param id: The ID of the CausalDiagram to be retrieved :type id: str :param user: Username :type user: str :param causal_diagram: An old CausalDiagramto be updated :type causal_diagram: dict | bytes :rtype: CausalDiagram """ if connexion.request.is_json: causal_diagram = CausalDiagram.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=causal_diagram, rdf_type_uri=CAUSALDIAGRAM_TYPE_URI, rdf_type_name=CAUSALDIAGRAM_TYPE_NAME, kls=CausalDiagram)
def persons_id_put(id, user=None, person=None): # noqa: E501 """Update an existing Person Updates an existing Person (more information in https://w3id.org/okn/o/sd#Person) # noqa: E501 :param id: The ID of the Person to be retrieved :type id: str :param user: Username :type user: str :param person: An old Personto be updated :type person: dict | bytes :rtype: Person """ if connexion.request.is_json: person = Person.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=person, rdf_type_uri=PERSON_TYPE_URI, rdf_type_name=PERSON_TYPE_NAME, kls=Person)
def catalogidentifiers_id_put(id, user=None, catalog_identifier=None): # noqa: E501 """Update an existing CatalogIdentifier Updates an existing CatalogIdentifier (more information in https://w3id.org/okn/o/sd#CatalogIdentifier) # noqa: E501 :param id: The ID of the CatalogIdentifier to be retrieved :type id: str :param user: Username :type user: str :param catalog_identifier: An old CatalogIdentifierto be updated :type catalog_identifier: dict | bytes :rtype: CatalogIdentifier """ if connexion.request.is_json: catalog_identifier = CatalogIdentifier.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=catalog_identifier, rdf_type_uri=CATALOGIDENTIFIER_TYPE_URI, rdf_type_name=CATALOGIDENTIFIER_TYPE_NAME, kls=CatalogIdentifier)
def softwareversions_id_put(id, user=None, software_version=None): # noqa: E501 """Update an existing SoftwareVersion Updates an existing SoftwareVersion (more information in https://w3id.org/okn/o/sd#SoftwareVersion) # noqa: E501 :param id: The ID of the SoftwareVersion to be retrieved :type id: str :param user: Username :type user: str :param software_version: An old SoftwareVersionto be updated :type software_version: dict | bytes :rtype: SoftwareVersion """ if connexion.request.is_json: software_version = SoftwareVersion.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=software_version, rdf_type_uri=SOFTWAREVERSION_TYPE_URI, rdf_type_name=SOFTWAREVERSION_TYPE_NAME, kls=SoftwareVersion)
def geocoordinatess_id_put(id, user=None, geo_coordinates=None): # noqa: E501 """Update an existing GeoCoordinates Updates an existing GeoCoordinates (more information in https://w3id.org/okn/o/sdm#GeoCoordinates) # noqa: E501 :param id: The ID of the GeoCoordinates to be retrieved :type id: str :param user: Username :type user: str :param geo_coordinates: An old GeoCoordinatesto be updated :type geo_coordinates: dict | bytes :rtype: GeoCoordinates """ if connexion.request.is_json: geo_coordinates = GeoCoordinates.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=geo_coordinates, rdf_type_uri=GEOCOORDINATES_TYPE_URI, rdf_type_name=GEOCOORDINATES_TYPE_NAME, kls=GeoCoordinates)
def processs_id_put(id, user=None, process=None): # noqa: E501 """Update an existing Process Updates an existing Process (more information in https://w3id.org/okn/o/sdm#Process) # noqa: E501 :param id: The ID of the Process to be retrieved :type id: str :param user: Username :type user: str :param process: An old Processto be updated :type process: dict | bytes :rtype: Process """ if connexion.request.is_json: process = Process.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=process, rdf_type_uri=PROCESS_TYPE_URI, rdf_type_name=PROCESS_TYPE_NAME, kls=Process)
def units_id_put(id, user=None, unit=None): # noqa: E501 """Update an existing Unit Updates an existing Unit (more information in https://w3id.org/okn/o/sd#Unit) # noqa: E501 :param id: The ID of the Unit to be retrieved :type id: str :param user: Username :type user: str :param unit: An old Unitto be updated :type unit: dict | bytes :rtype: Unit """ if connexion.request.is_json: unit = Unit.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=unit, rdf_type_uri=UNIT_TYPE_URI, rdf_type_name=UNIT_TYPE_NAME, kls=Unit)
def images_id_put(id, user=None, image=None): # noqa: E501 """Update an existing Image Updates an existing Image (more information in https://w3id.org/okn/o/sd#Image) # noqa: E501 :param id: The ID of the Image to be retrieved :type id: str :param user: Username :type user: str :param image: An old Imageto be updated :type image: dict | bytes :rtype: Image """ if connexion.request.is_json: image = Image.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=image, rdf_type_uri=IMAGE_TYPE_URI, rdf_type_name=IMAGE_TYPE_NAME, kls=Image)
def numericalindexs_id_put(id, user=None, numerical_index=None): # noqa: E501 """Update an existing NumericalIndex Updates an existing NumericalIndex (more information in https://w3id.org/okn/o/sd#NumericalIndex) # noqa: E501 :param id: The ID of the NumericalIndex to be retrieved :type id: str :param user: Username :type user: str :param numerical_index: An old NumericalIndexto be updated :type numerical_index: dict | bytes :rtype: NumericalIndex """ if connexion.request.is_json: numerical_index = NumericalIndex.from_dict(connexion.request.get_json()) # noqa: E501 return query_manager.put_resource(id=id, user=user, body=numerical_index, rdf_type_uri=NUMERICALINDEX_TYPE_URI, rdf_type_name=NUMERICALINDEX_TYPE_NAME, kls=NumericalIndex)