Class LinkedDataFileResource
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.identifiable.Identifiable
de.digitalcollections.model.identifiable.resource.FileResource
de.digitalcollections.model.identifiable.resource.LinkedDataFileResource
This class represents a linked data file resource, referenced through an uri. It may be specified
additionally (if applicable) by the context definition and the corresponding (object) type.
Examples of LinkedDataFileResources are machine readable resources like Marc, MARC-XML, RDF, IIIF-Manifest, METS, JSON-LD, ....
A linked data file resource may be for example of format JSON-LD (mimetype 'application/ld+json'), e.g. an IIIF Presentation Manifest or an Entity Facts person description, what is the first use case being in focus.
JSON-LD is designed around the concept of a "context" to provide additional mappings from JSON to an RDF model.
The 'context' links object properties in a JSON document to concepts in an ontology.
The 'id' is an Internationalized Resource Identifier, represented by an IRI, which allows the Linked Data FileResource to be unambiguously identified by an IRI. In our implementation we use the 'uri' field of FileResource to be the id.
The 'type' specifies the type of object described in the document.
The 'context' and 'objectType' are optional if no context or objectType is known.
Further informations:
Examples of LinkedDataFileResources are machine readable resources like Marc, MARC-XML, RDF, IIIF-Manifest, METS, JSON-LD, ....
A linked data file resource may be for example of format JSON-LD (mimetype 'application/ld+json'), e.g. an IIIF Presentation Manifest or an Entity Facts person description, what is the first use case being in focus.
JSON-LD is designed around the concept of a "context" to provide additional mappings from JSON to an RDF model.
The 'context' links object properties in a JSON document to concepts in an ontology.
The 'id' is an Internationalized Resource Identifier, represented by an IRI, which allows the Linked Data FileResource to be unambiguously identified by an IRI. In our implementation we use the 'uri' field of FileResource to be the id.
The 'type' specifies the type of object described in the document.
The 'context' and 'objectType' are optional if no context or objectType is known.
Further informations:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LinkedDataFileResource.LinkedDataFileResourceBuilder<C extends LinkedDataFileResource,
B extends LinkedDataFileResource.LinkedDataFileResourceBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.resource.FileResource
FileResource.FileResourceBuilder<C extends FileResource,
B extends FileResource.FileResourceBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.Identifiable
Identifiable.IdentifiableBuilder<C extends Identifiable,
B extends Identifiable.IdentifiableBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
Fields inherited from class de.digitalcollections.model.identifiable.resource.FileResource
fileResourceType
Fields inherited from class de.digitalcollections.model.identifiable.Identifiable
description, identifiableObjectType, identifiers, label, localizedUrlAliases, previewImage, previewImageRenderingHints, subjects, tags, type
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
protected void
init()
Use to initialize member variables, used by default constructor and buildervoid
setContext
(URI context) void
setObjectType
(String objectType) Methods inherited from class de.digitalcollections.model.identifiable.resource.FileResource
getFilename, getFilenameExtension, getFileResourceType, getHttpBaseUrl, getLicense, getMimeType, getSizeInBytes, getUri, isReadonly, setFilename, setFileResourceType, setHttpBaseUrl, setLicense, setMimeType, setReadonly, setSizeInBytes, setUri, toString
Methods inherited from class de.digitalcollections.model.identifiable.Identifiable
addIdentifier, addLocalizedUrlAlias, addSubject, addTag, getDescription, getIdentifiableObjectType, getIdentifierByNamespace, getIdentifiers, getLabel, getLocalizedUrlAliases, getPreviewImage, getPreviewImageRenderingHints, getPrimaryUrlAlias, getSubjects, getTags, getType, removeIdentifier, setDescription, setIdentifiableObjectType, setIdentifiers, setLabel, setLabel, setLocalizedUrlAliases, setPreviewImage, setPreviewImageRenderingHints, setSubjects, setTags, setType
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, isPersisted, setCreated, setLastModified, setUuid
-
Constructor Details
-
LinkedDataFileResource
public LinkedDataFileResource()
-
-
Method Details
-
equals
- Overrides:
equals
in classFileResource
-
getContext
- Returns:
- the linked data context. The 'context' links object properties in a JSON document to concepts in an ontology.
-
getObjectType
- Returns:
- the object type described in this document
-
hashCode
public int hashCode()- Overrides:
hashCode
in classFileResource
-
init
protected void init()Description copied from class:UniqueObject
Use to initialize member variables, used by default constructor and builder- Overrides:
init
in classFileResource
-
setContext
- Parameters:
context
- set the linked data context to given context
-
setObjectType
- Parameters:
objectType
- set the object type described in this document
-