Interface LinkedDataFileResource
- All Superinterfaces:
FileResource,Identifiable
- All Known Implementing Classes:
LinkedDataFileResourceImpl
public interface LinkedDataFileResource extends FileResource
This class represents a linked data file resource, referenced through an uri and specified by the
context definition and the corresponding (object) type. A linked data file resource can be 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.
Further informations:
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.
Further informations:
-
Method Summary
Modifier and Type Method Description java.net.URIgetContext()java.lang.StringgetObjectType()voidsetContext(java.net.URI context)voidsetObjectType(java.lang.String objectType)Methods inherited from interface de.digitalcollections.model.api.identifiable.resource.FileResource
getFilename, getFilenameExtension, getFileResourceType, getHttpBaseUrl, getLicense, getMimeType, getSizeInBytes, getUri, isReadonly, setFilename, setFileResourceType, setHttpBaseUrl, setLicense, setMimeType, setReadonly, setSizeInBytes, setUriMethods inherited from interface de.digitalcollections.model.api.identifiable.Identifiable
addIdentifier, getCreated, getDescription, getIdentifierByNamespace, getIdentifiers, getLabel, getLastModified, getPreviewImage, getPreviewImageRenderingHints, getType, getUuid, setCreated, setDescription, setIdentifiers, setLabel, setLastModified, setPreviewImage, setPreviewImageRenderingHints, setType, setUuid
-
Method Details
-
getContext
java.net.URI getContext()- Returns:
- the linked data context. The 'context' links object properties in a JSON document to concepts in an ontology.
-
setContext
void setContext(java.net.URI context)- Parameters:
context- set the linked data context to given context
-
getObjectType
java.lang.String getObjectType()- Returns:
- the object type described in this document
-
setObjectType
void setObjectType(java.lang.String objectType)- Parameters:
objectType- set the object type described in this document
-