-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Link to semantic terms for each field in documentation
- Loading branch information
Showing
4 changed files
with
54 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
Person | ||
====== | ||
|
||
A ``Person`` objects represents a web resource about a person. For example, this could be a composer or performer. | ||
|
||
We recommend that the following fields are set: | ||
|
||
.. csv-table:: | ||
:header: "field", "required", "Description" | ||
:stub-columns: 1 | ||
|
||
`title <http://purl.org/dc/elements/1.1/title>`_, yes, The title of the resource indicated by ``source`` | ||
contributor, yes,The main URL of the site where the information about this Person was taken from | ||
creator, yes, "The person, organization or service who is creating this Person (e.g. URL of the software)" | ||
source, yes, The URL of the web resource where information about this Person is taken from | ||
language, yes, "The language the metadata is written in. Currently supported languages are en,es,ca,nl,de,fr" | ||
format\_, yes, The mimetype of the resource indicated by `source` | ||
name, yes, The name of the person | ||
family_name, , The family name of the person | ||
given_name, , The given name of the person | ||
gender, , The person's gender | ||
birth_date, , "The birth date of the person, formatted as yyyy, yyyy-mm or yyyy-mm-dd" | ||
death_date, , "The date of death of the person , formatted as yyyy, yyyy-mm or yyyy-mm-dd" | ||
description, , A biographical description of the person | ||
image, , URL to an image associated with the person | ||
publisher, , An entity responsible for making the resource available | ||
honorific_prefix, , An honorific prefix | ||
honorific_suffix, , An honorific suffix | ||
job_title, , The person's job title | ||
A :schema:`Person` object represents a web resource about a person. For example, this could be a composer or performer. | ||
|
||
|
||
Creating objects | ||
---------------- | ||
|
||
To create a ``Person`` object, use the ``CreatePerson`` mutation | ||
|
||
.. autofunction:: trompace.mutations.person.mutation_create_person | ||
|
||
To update a ``Person`` object, use the ``UpdatePerson`` mutation | ||
|
||
.. autofunction:: trompace.mutations.person.mutation_update_person | ||
|
||
To delete a ``Person`` object, use the ``DeletePerson`` mutation | ||
|
||
.. autofunction:: trompace.mutations.person.mutation_delete_person | ||
|
||
|
||
Relations | ||
--------- | ||
|
||
exactMatch: Use :meth:`trompace.mutations.person.mutation_person_add_exact_match_person` | ||
exactMatch | ||
^^^^^^^^^^ | ||
|
||
The `skos:exactMatch <http://www.w3.org/2004/02/skos/core#exactMatch>`_ relationship is used to identify | ||
that two ``Person`` nodes refer to the exact same natural person. | ||
|
||
.. image:: ../graphics/x.png | ||
:target: ../_images/x.png | ||
|
||
Use the ``MergePersonExactMatch`` mutation to create a one-way link between two ``Person`` objects | ||
|
||
.. autofunction:: trompace.mutations.person.mutation_person_add_exact_match_person | ||
|
||
Use the ``RemovePersonExactMatch`` mutation to remove link between two ``Person`` objects | ||
|
||
.. automodule:: trompace.mutations.person | ||
:members: | ||
.. autofunction:: trompace.mutations.person.mutation_person_remove_exact_match_person |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters