Class DataResource
java.lang.Object
org.ivoa.dm.registry.voresource.Resource
org.ivoa.dm.registry.voresource.Service
org.ivoa.dm.registry.vodataservice.DataResource
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
 CatalogResource,DataService
@Entity
@VoDml(id="VODataService:DataResource",
       role=objectType)
public class DataResource
extends Service
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A resource publishing astronomical data.
                         
                           This resource type should only be used if the resource has no
                           common underlying tabular schema (e.g., an inhomogeneous archive).
                           Use CatalogResource otherwise. 
 objectType:  DataResource
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for DataResource, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.registry.voresource.Service
Service.ServiceBuilderNested classes/interfaces inherited from class org.ivoa.dm.registry.voresource.Resource
Resource.ResourceBuilder - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CoverageExtent of the content of the resource over space, time, and frequency.protected List<ResourceName>The observatory or facility used to collect the data contained or managed by this resource.protected List<ResourceName>The instrument used to collect the data contain or managed by a resource.Collections of data products (e.g., images or spectra) or services serving them define the type of products they contain or serve here.Fields inherited from class org.ivoa.dm.registry.voresource.Service
capability, rightsFields inherited from class org.ivoa.dm.registry.voresource.Resource
_id, altIdentifier, content, created, curation, identifier, shortName, status, title, updated, validationLevel, version - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DataResourceDataResource(List<ResourceName> facility, List<ResourceName> instrument, Coverage coverage, List<String> productTypeServed, List<Rights> rights, List<Capability> capability, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.DataResource(DataResource other) Copy Constructor.DataResource(Service superinstance, List<ResourceName> facility, List<ResourceName> instrument, Coverage coverage, List<String> productTypeServed) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static DataResourcecreate a DataResource in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns coverage Attribute.Returns facility Attribute.Returns instrument Attribute.Returns productTypeServed Attribute.voidsetCoverage(Coverage pCoverage) Set coverage Attribute.voidsetFacility(List<ResourceName> pFacility) Set facility Attribute.voidsetInstrument(List<ResourceName> pInstrument) Set instrument Attribute.voidsetProductTypeServed(List<String> pProductTypeServed) Set productTypeServed Attribute.voidupdateUsing(DataResource other) Update this object with the content of the given object.withCoverage(Coverage pCoverage) fluent setter for coverage Attribute.withFacility(List<ResourceName> pFacility) fluent setter for facility Attribute.withInstrument(List<ResourceName> pInstrument) fluent setter for instrument Attribute.withProductTypeServed(List<String> pProductTypeServed) fluent setter for productTypeServed Attribute.Methods inherited from class org.ivoa.dm.registry.voresource.Service
addToCapability, createService, getCapability, getRights, removeFromCapability, replaceInCapability, setCapability, setRights, updateUsing, withRightsMethods inherited from class org.ivoa.dm.registry.voresource.Resource
createResource, getAltIdentifier, getContent, getCreated, getCuration, getId, getIdentifier, getShortName, getStatus, getTitle, getUpdated, getValidationLevel, getVersion, setAltIdentifier, setContent, setCreated, setCuration, setIdentifier, setShortName, setStatus, setTitle, setUpdated, setValidationLevel, setVersion, updateUsing, withAltIdentifier, withContent, withCreated, withCuration, withIdentifier, withShortName, withStatus, withTitle, withUpdated, withValidationLevel, withVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId 
- 
Field Details
- 
facility
@VoDml(id="VODataService:DataResource.facility", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> facilityThe observatory or facility used to collect the data contained or managed by this resource. : Attribute facility : multiplicity 0..* - 
instrument
@VoDml(id="VODataService:DataResource.instrument", role=attribute, type="VOResource:ResourceName", typeRole=dataType) protected List<ResourceName> instrumentThe instrument used to collect the data contain or managed by a resource. : Attribute instrument : multiplicity 0..* - 
coverage
@VoDml(id="VODataService:DataResource.coverage", role=composition, type="VODataService:Coverage", typeRole=objectType) protected Coverage coverageExtent of the content of the resource over space, time, and frequency. composition coverage : ( Multiplicity : 0..1 ) - 
productTypeServed
@VoDml(id="VODataService:DataResource.productTypeServed", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> productTypeServedCollections of data products (e.g., images or spectra) or services serving them define the type of products they contain or serve here. This information is intended to enable global product discovery. Hence, services failing to define their product type(s) may be skipped by clients in global discovery. Product type names must be taken from the IVOA vocabulary http://www.ivoa.net/rdf/product-type. : Attribute productTypeServed : multiplicity 0..* 
 - 
 - 
Constructor Details
- 
DataResource
public DataResource()Creates a new DataResource - 
DataResource
public DataResource(List<ResourceName> facility, List<ResourceName> instrument, Coverage coverage, List<String> productTypeServed, List<Rights> rights, List<Capability> capability, List<Validation> validationLevel, String title, ShortName shortName, IdentifierURI identifier, List<String> altIdentifier, Curation curation, Content content, UTCTimestamp created, UTCTimestamp updated, Resource_status status, String version) full parameter constructor.- Parameters:
 facility- The observatory or facility used to collect the data contained or managed by this resource.instrument- The instrument used to collect the data contain or managed by a resource.coverage- Extent of the content of the resource over space, time, and frequency.productTypeServed- Collections of data products (e.g., images or spectra) or services serving them define the type of products they contain or serve here. This information is intended to enable global product discovery. Hence, services failing to define their product type(s) may be skipped by clients in global discovery. Product type names must be taken from the IVOA vocabulary http://www.ivoa.net/rdf/product-type.rights- Information about rights held in and over the resource. Mainly for compatibility with DataCite, this element is repeatable. Resource record authors are advised that within the Virtual Observatory clients will typically only display and/or use the rights element occurring first and ignore later elements.capability- a description of a general capability of the service and how to use it. This describes a general function of the service, usually in terms of a standard service protocol (e.g. SIA), but not necessarily so. A service can have many capabilities associated with it, each reflecting different aspects of the functionality it provides.validationLevel- A numeric grade describing the quality of the resource description, when applicable, to be used to indicate the confidence an end-user can put in the resource as part of a VO application or research study. See VOResource:Validation for an explanation of the allowed levels. Note that when this resource is a Service, this grade applies to the core set of metadata. Capability and interface metadata, as well as the compliance of the service with the interface standard, is rated by validationLevel tag in the capability element (see the VOResource:Service complex type).title- the full name given to the resource .shortName- A short name or abbreviation given to the resource. This name will be used where brief annotations for the resource name are required. Applications may use to refer to this resource in a compact display. One word or a few letters is recommended. No more than sixteen characters are allowed.identifier- Unambiguous reference to the resource conforming to the IVOA standard for identifiers .altIdentifier- A reference to this resource in a non-IVOA identifier scheme, e.g., DOI or bibcode. Always use the an URI scheme here, e.g., doi:10.1016/j.epsl.2011.11.037. For bibcodes, use a form like bibcode:2008ivoa.spec.0222P.curation- Information regarding the general curation of the resource .content- Information regarding the general content of the resource .created- The UTC date and time this resource metadata description was created. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.updated- The UTC date this resource metadata description was last updated. This timestamp must not be in the future. This time is not required to be accurate; it should be at least accurate to the day. Any non-significant time fields should be set to zero.status- a tag indicating whether this resource is believed to be still actively maintained.version- The VOResource XML schema version against which this instance was written. Implementors should set this to the value of the version attribute of their schema's root (xs:schema) element. Clients may assume version 1.0 if this attribute is missing.
 - 
DataResource
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
DataResource
public DataResource(Service superinstance, List<ResourceName> facility, List<ResourceName> instrument, Coverage coverage, List<String> productTypeServed) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.facility- The observatory or facility used to collect the data contained or managed by this resource.instrument- The instrument used to collect the data contain or managed by a resource.coverage- Extent of the content of the resource over space, time, and frequency.productTypeServed- Collections of data products (e.g., images or spectra) or services serving them define the type of products they contain or serve here. This information is intended to enable global product discovery. Hence, services failing to define their product type(s) may be skipped by clients in global discovery. Product type names must be taken from the IVOA vocabulary http://www.ivoa.net/rdf/product-type.
 
 - 
 - 
Method Details
- 
copyMe
make a clone of the object taking into account current polymorhic type. - 
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
getFacility
Returns facility Attribute.- Returns:
 - facility Attribute
 
 - 
setFacility
Set facility Attribute.- Parameters:
 pFacility- value to set
 - 
withFacility
fluent setter for facility Attribute.- Parameters:
 pFacility- value to set- Returns:
 - DataResource
 
 - 
getInstrument
Returns instrument Attribute.- Returns:
 - instrument Attribute
 
 - 
setInstrument
Set instrument Attribute.- Parameters:
 pInstrument- value to set
 - 
withInstrument
fluent setter for instrument Attribute.- Parameters:
 pInstrument- value to set- Returns:
 - DataResource
 
 - 
getCoverage
Returns coverage Attribute.- Returns:
 - coverage Attribute
 
 - 
setCoverage
Set coverage Attribute.- Parameters:
 pCoverage- value to set
 - 
withCoverage
fluent setter for coverage Attribute.- Parameters:
 pCoverage- value to set- Returns:
 - DataResource
 
 - 
getProductTypeServed
Returns productTypeServed Attribute.- Returns:
 - productTypeServed Attribute
 
 - 
setProductTypeServed
Set productTypeServed Attribute.- Parameters:
 pProductTypeServed- value to set
 - 
withProductTypeServed
fluent setter for productTypeServed Attribute.- Parameters:
 pProductTypeServed- value to set- Returns:
 - DataResource
 
 - 
createDataResource
create a DataResource in functional builder style.- Parameters:
 f- the functional builder.- Returns:
 - an object initialized from the builder.
 
 - 
forceLoad
public void forceLoad() - 
delete
public void delete(jakarta.persistence.EntityManager em)  
 -