XmpDublinCorePackage class
Leave feedback
On this page
Represents the Dublin Core scheme.
For more information see: http://dublincore.org/documents/usageguide/elements.shtml.
The XmpDublinCorePackage type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the XmpDublinCorePackage class. |
| Method | Description |
|---|---|
| get_xmp_representation | Converts the XMP value to the XML representation. |
| set | Sets the XMP metadata property to the specified value, using the underlying XmpArray implementation. |
| set_contributor | Sets a single contributor of the resource. |
| set_contributor_file | |
| set_contributor_string | |
| set_creator | Sets a single creator of the resource. |
| set_creator_file | |
| set_creator_string | |
| set_date | Sets a single date associated with the resource. |
| set_date_date_time | |
| set_description | Sets the resource description in a single language. |
| set_description_file | |
| set_description_string | |
| set_file | |
| set_language | Sets a single language associated with the resource. |
| set_language_file | |
| set_language_string | |
| set_publisher | Sets a single publisher of the resource. |
| set_publisher_file | |
| set_publisher_string | |
| set_relation | Sets a single related resource. |
| set_relation_file | |
| set_relation_string | |
| set_rights | Sets the resource rights, given in a single language. |
| set_rights_file | |
| set_rights_string | |
| set_string | |
| set_subject | Sets a single subject of the resource. |
| set_subject_file | |
| set_subject_string | |
| set_title | Sets the resource title in a single language. |
| set_title_file | |
| set_title_string | |
| set_type | Sets a single type of the resource. |
| set_type_file | |
| set_type_string | |
| add_properties | Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. (inherited from MetadataPackage) |
| add_properties_func | (inherited from MetadataPackage) |
| clear | Removes all XMP properties. (inherited from XmpPackage) |
| contains | Returns True if the package contains a metadata property with the specified name; otherwise, False. (inherited from MetadataPackage) |
| contains_file | (inherited from MetadataPackage) |
| contains_string | (inherited from MetadataPackage) |
| find_properties | Finds metadata properties that satisfy the specified predicate, searching recursively through all nested packages. (inherited from MetadataPackage) |
| find_properties_func | (inherited from MetadataPackage) |
| get | (inherited from MetadataPackage) |
| get_enumerator | Returns an enumerator that iterates through the collection. (inherited from MetadataPackage) |
| get_file | (inherited from MetadataPackage) |
| get_string | (inherited from MetadataPackage) |
| remove | Removes the property with the specified name. (inherited from XmpPackage) |
| remove_file | (inherited from XmpPackage) |
| remove_properties | Removes metadata properties satisfying the specified predicate. (inherited from MetadataPackage) |
| remove_properties_func | (inherited from MetadataPackage) |
| remove_string | (inherited from XmpPackage) |
| sanitize | Removes writable metadata properties from the package, recursively affecting all nested packages. (inherited from MetadataPackage) |
| set_properties | Sets known metadata properties satisfying the specified predicate. (inherited from MetadataPackage) |
| set_properties_func | (inherited from MetadataPackage) |
| update_properties | Updates known metadata properties that satisfy the specified predicate, recursively affecting all nested packages. (inherited from MetadataPackage) |
| update_properties_func | (inherited from MetadataPackage) |
| Property | Description |
|---|---|
| contributors | The contributors array. |
| coverage | The extent or scope of the resource. |
| creators | The creators of the Dublin Core package. An array of the creators. |
| dates | The dates associated with an event in the life cycle of the resource. |
| descriptions | The array of textual descriptions of the content of the resource, given in various languages. |
| format | The MIME type of the resource. |
| identifier | The identifier of the resource, represented as a string. |
| languages | The languages used in the content of the resource. |
| publishers | The publishers that made the resource available as a list of strings. |
| relations | The related resources as a list of strings. |
| rights | The rights property provides an array of informal rights statements given in various languages. |
| source | The related resource from which the described resource is derived. |
| subjects | The subjects property provides an array of descriptive phrases or keywords that specify the content of the resource. |
| titles | The title or name of the resource, given in various languages. |
| types | The array of string values representing the nature or genre of the resource. |
| count | The number of metadata properties. (inherited from MetadataPackage) |
| keys | The collection of metadata property names. (inherited from MetadataPackage) |
| know_property_descriptors | The collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. (inherited from MetadataPackage) |
| metadata_type | The metadata type of the package. (inherited from MetadataPackage) |
| namespace_uri | The namespace URI. (inherited from XmpPackage) |
| prefix | The XML namespace prefix. (inherited from XmpPackage) |
| property_descriptors | The collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. (inherited from MetadataPackage) |
| xml_namespace | The XML namespace. (inherited from XmpPackage) |
from groupdocs.metadata import Metadata
from groupdocs.metadata.standards.xmp.schemes import XmpDublinCorePackage
with Metadata("example.gif") as metadata:
root = metadata.get_root_package()
xmp = getattr(root, "xmp_package", None)
if xmp and xmp.schemes.dublin_core is None:
xmp.schemes.dublin_core = XmpDublinCorePackage()
xmp.schemes.dublin_core.format = "image/gif"
metadata.save("output.gif")
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.