acdh-oeaw / arche-schema
ACDH repository ontology
Installs: 2 610
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 9
Forks: 0
Open Issues: 3
Language:PLpgSQL
Requires (Dev)
- dev-master
- 5.x-dev
- v5.1.0
- v5.0.0
- v4.x-dev
- 4.4.0
- v4.3.x-dev
- v4.3.0
- v4.2.0
- v4.1.1
- v4.1.0
- v4.0.0
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.10
- v2.0.9
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- 2.0.2
- v2.0.1
- v2.0.0
- 1.11.2
- 1.11.1
- 1.11
- 1.10
- 1.9
- 1.8
- 1.7.1
- 1.7.0
- 1.6.3
- 1.6
- 1.5.0
- v1.4.1
- v1.4
- v1.3
- v1.2
- v1.1
- v1.0
- dev-vocabsAsRanges
- dev-langTag
- dev-exampleValue
- dev-hasLiteralIdentifier_range
- dev-21-create-human-readable-documentation
- dev-ontology-v3.1
- dev-ordering-tech-props
- dev-versioningdescr
- dev-ontology-v3
- dev-bellerophons-pegasus-patch-2
- dev-ontologyV2.0
- dev-rdbms
This package is auto-updated.
Last update: 2024-11-05 09:18:54 UTC
README
This is the repo for the ACDH-Ontology
. The ontology is going to be used to describe resources in the acdh-repo.
- For an interactive network visualization of the current ontology, please see here (thanks https://github.com/VisualDataWeb/WebVOWL)
- For a tabular view click here or here
Release cycle
Releasing new ontology versions requires lots of care. This is because the ontology determines behaviour of crucial ARCHE components (most notably the doorkeeper and the GUI) and because we must be able to assure already existing metadata are in line with the current ontology.
To assure new ontology release won't cause any trouble, the release process should go as follows:
- Create a new git branch (
git checkout -b branchName
, where branchName may be e.g. the next ontology version number). - Make changes in the new branch, commit it and push to the GitHub (
git push origin branchName
). - Create a pull request:
- go to https://github.com/acdh-oeaw/arche-schema/compare
- choose your branch in the
compare:
drop-down list - provide description of your changes
- click the create pull request button
- Wait for approval from Martina, Mateusz and Norbert.
The checklist:- ontology check script reports no errors
- arche-lib-schema passes tests against the new ontology
- arche-doorkeeper passes tests against the new ontology
- dynamic root table displays new ontology corretly
- we have scripts for updating old metadata so they are in line with the new ontology
- Merge pull request and create a new release.
Conventions
Version numbers
- major number change is constituted by ANY of:
- adjusting or adding a cardinality restriction
- removing a class, a property or an annotation property
- removing an annotation property
- middle number change is constitude by ANY of:
- adding a new class property or annotation property
- adjusting class inheritance
- adjusting property inheritance, range or domain
- adjusting values of annotation properties driving the doorkeeper or GUI behaviour
- minor number change is constituted by:
- a change with no impact on the doorkeeper and GUI (e.g. description or translation changes)
Classes
- As usual, class names have to start with a capital letter
- Use camelcase writing
- Uf a union of classes is required use a helper class
- Helper classes are all subclasses of acdh:Helper
Properties
- As usual, property names have to start with a lower case letter
- Use camelcase writing
- The direction of a property should be stated in the name of the property.
- BAD
acdh:title
- GOOD
acdh:hasTitle
- BAD
acdh:isMember
- GOOD
acdh:isMemberOf
- BAD
- Remember about differences between datatype and object properties:
- What is what and how it impacts the GUI?
- A datatype property has a literal value
(in layman's terms in a ttl it's value is written between
"
, e.g._:someRes acdh:someProperty "literal value"
)- It can still be an URL/URI, just it will be stored as a string and will NOT create a separate repository resource (in GUI it will be displayed as a clickable link opening the URL in a new tab)
- An object property has an URI value
(in layman's terms in a ttl it's value is written between
<
and>
or using a shorthand syntax, e.g._:someRes acdh:someProperty <https://some/url>
or_:someRes acdh:someProperty acdhi:otherResource
)- Object property values create new repository resources
- A datatype property has a literal value
(in layman's terms in a ttl it's value is written between
- What can't be done (in owl)
- A datatype property can't inherit from an object property (and vice versa)
- A datatype property and an object property can't be equivalent
- What is what and how it impacts the GUI?
- A property meaning must not depend on a class context. If you feel a property meaning is (even a little) different for different classes, create two (or more) properties instead.
- Don't create both a property and its inverse version - it creates a lot of trouble and doesn't make providing data easier
Ranges
- Choose datatype property ranges wisely as they affect the doorkeeper and the GUI
- Properties using
xsd:
types other thanxsd:string
andxsd:anyURI
will be casted by a doorkeeper (e.g. if the range isxsd:date
and ingested value is2018
the doorkeeper will cast it to2018-01-01
) - Properties with range
xsd:anyURI
will be displayed in the GUI as clickable links opening in a new tab while all other datatype property values are displayed in the GUI just as they are
- Properties using
Restrictions
- Do not use qualified cardinality restrictions - the range is already defined by a property and shouldn't be redefined (or changed) in the restriction (in Protege terms it means setting as range rdfs:Literal for datatype properties and owl:Thing for object properties)
- Try to avoid duplicating same restrictions on all subclasses of a common parent - define the restriction on the parent instead (you won't loose anything as Protege still shows you such inheritet restrictions and it will allow to keep the ontology smaller and simpler)
- Model actual repository behaviour
(take into account not all resources in the repository are of any of ACDH classes defined in this ontology but some rules stil apply to them, e.g. all must have a title and an identifier)
- Use
owl:Thing
to denote any resource in the repository
- Use
Annotation properties
- Follow annotation property description closely