Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/datadoc/keywords-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,12 @@ with multiple languages.
| [qualifiedAttribution] | [prov:Attribution] | optional | An Agent having some form of responsibility for the resource. | |
| [abstract] | [rdfs:Literal]<br>(rdf:langString) | | A summary of the resource. | |
| [bibliographicCitation] | [rdfs:Literal] | | A bibliographic reference for the resource. | Recommended practice is to include sufficient bibliographic detail to identify the resource as unambiguously as possible. |
| [creationDate] | [xsd:date] | | Date of creation (YYYY-MM-DD). | |
| [conformance] | [ddoc:ConformanceLevel] | | Whether the annotation is mandatory, recommended or optional. | It MUST take one of the values 'ddoc:mandatory', 'ddoc:recommended' or 'ddoc:optional'. |
| [creationTime] | [xsd:time] | | Time of creation (HH:MM:SS). | |
| [curationDate] | [xsd:date] | | Date of curation. | |
| [curator] | [foaf:Agent] | | The agent that curated the resource. | Use `ddoc:curationDate` to refer to the date of curation. |
| [unit] | [rdfs:Literal]<br>(xsd:string) | | A SI unit associated to a property. | The unit should be written with standard SI unit symbols. Examples: As, μm, J, m/s² |
| [statements] | [rdfs:Literal]<br>(rdf:JSON) | | A list of subject-predicate-object triples with additional RDF statements documenting the resource. | |
| [deprecated] | [rdfs:Literal]<br>(xsd:boolean) | | The annotation property that indicates that a given entity has been deprecated. It should equal to `"true"^^xsd:boolean`. | |
| [comment] | [rdfs:Literal] | | A description of the subject resource. Use `description` instead. | |
Expand Down Expand Up @@ -266,6 +269,8 @@ with multiple languages.
[dcterms:Standard]: http://purl.org/dc/terms/Standard
[contributor]: http://purl.org/dc/terms/contributor
[foaf:Agent]: http://xmlns.com/foaf/0.1/Agent
[creationDate]: http://purl.org/dc/terms/created
[xsd:date]: http://www.w3.org/2001/XMLSchema#date
[creator]: http://purl.org/dc/terms/creator
[foaf:Agent]: http://xmlns.com/foaf/0.1/Agent
[description]: http://purl.org/dc/terms/description
Expand All @@ -288,10 +293,14 @@ with multiple languages.
[rdfs:Literal]: http://www.w3.org/2000/01/rdf-schema#Literal
[conformance]: https://w3id.org/emmo/application/datadoc#conformance
[ddoc:ConformanceLevel]: https://w3id.org/emmo/application/datadoc#ConformanceLevel
[creationTime]: https://w3id.org/emmo/application/datadoc#creationTime
[xsd:time]: http://www.w3.org/2001/XMLSchema#time
[curationDate]: https://w3id.org/emmo/application/datadoc#curationDate
[xsd:date]: http://www.w3.org/2001/XMLSchema#date
[curator]: https://w3id.org/emmo/application/datadoc#curator
[foaf:Agent]: http://xmlns.com/foaf/0.1/Agent
[unit]: https://w3id.org/emmo/application/datadoc#unit
[rdfs:Literal]: http://www.w3.org/2000/01/rdf-schema#Literal
[documentation]: http://xmlns.com/foaf/0.1/page
[foaf:Document]: http://xmlns.com/foaf/0.1/Document
[statements]: https://w3id.org/emmo/domain/oteio#statement
Expand Down
9 changes: 9 additions & 0 deletions docs/datadoc/keywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,12 @@ with multiple languages.
| [qualifiedAttribution] | [prov:Attribution] | optional | An Agent having some form of responsibility for the resource. | |
| [abstract] | [rdfs:Literal]<br>(rdf:langString) | | A summary of the resource. | |
| [bibliographicCitation] | [rdfs:Literal] | | A bibliographic reference for the resource. | Recommended practice is to include sufficient bibliographic detail to identify the resource as unambiguously as possible. |
| [creationDate] | [xsd:date] | | Date of creation (YYYY-MM-DD). | |
| [conformance] | [ddoc:ConformanceLevel] | | Whether the annotation is mandatory, recommended or optional. | It MUST take one of the values 'ddoc:mandatory', 'ddoc:recommended' or 'ddoc:optional'. |
| [creationTime] | [xsd:time] | | Time of creation (HH:MM:SS). | |
| [curationDate] | [xsd:date] | | Date of curation. | |
| [curator] | [foaf:Agent] | | The agent that curated the resource. | Use `ddoc:curationDate` to refer to the date of curation. |
| [unit] | [rdfs:Literal]<br>(xsd:string) | | A SI unit associated to a property. | The unit should be written with standard SI unit symbols. Examples: As, μm, J, m/s² |
| [statements] | [rdfs:Literal]<br>(rdf:JSON) | | A list of subject-predicate-object triples with additional RDF statements documenting the resource. | |
| [deprecated] | [rdfs:Literal]<br>(xsd:boolean) | | The annotation property that indicates that a given entity has been deprecated. It should equal to `"true"^^xsd:boolean`. | |
| [comment] | [rdfs:Literal] | | A description of the subject resource. Use `description` instead. | |
Expand Down Expand Up @@ -278,6 +281,8 @@ with multiple languages.
[dcterms:Standard]: http://purl.org/dc/terms/Standard
[contributor]: http://purl.org/dc/terms/contributor
[foaf:Agent]: http://xmlns.com/foaf/0.1/Agent
[creationDate]: http://purl.org/dc/terms/created
[xsd:date]: http://www.w3.org/2001/XMLSchema#date
[creator]: http://purl.org/dc/terms/creator
[foaf:Agent]: http://xmlns.com/foaf/0.1/Agent
[description]: http://purl.org/dc/terms/description
Expand All @@ -300,10 +305,14 @@ with multiple languages.
[rdfs:Literal]: http://www.w3.org/2000/01/rdf-schema#Literal
[conformance]: https://w3id.org/emmo/application/datadoc#conformance
[ddoc:ConformanceLevel]: https://w3id.org/emmo/application/datadoc#ConformanceLevel
[creationTime]: https://w3id.org/emmo/application/datadoc#creationTime
[xsd:time]: http://www.w3.org/2001/XMLSchema#time
[curationDate]: https://w3id.org/emmo/application/datadoc#curationDate
[xsd:date]: http://www.w3.org/2001/XMLSchema#date
[curator]: https://w3id.org/emmo/application/datadoc#curator
[foaf:Agent]: http://xmlns.com/foaf/0.1/Agent
[unit]: https://w3id.org/emmo/application/datadoc#unit
[rdfs:Literal]: http://www.w3.org/2000/01/rdf-schema#Literal
[documentation]: http://xmlns.com/foaf/0.1/page
[foaf:Document]: http://xmlns.com/foaf/0.1/Document
[statements]: https://w3id.org/emmo/domain/oteio#statement
Expand Down
4 changes: 2 additions & 2 deletions tests/datadoc/test_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_iter():

def test_len():
"""Test __iter__() method."""
assert len(keywords) == 125
assert len(keywords) == 128


def test_dir():
Expand Down Expand Up @@ -749,5 +749,5 @@ def test__keywords_list():
assert isinstance(themeset, set)

kwset, clset, themeset = keywords._keywords_list(namespace_filter="ddoc")
assert len(kwset) == 4
assert len(kwset) == 6
assert len(clset) == 2
12 changes: 12 additions & 0 deletions tripper/context/0.3/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@
"@id": "dcterms:contributor",
"@type": "@id"
},
"creationDate": {
"@id": "dcterms:created",
"@type": "@id"
},
"creationTime": {
"@id": "ddoc:creationTime",
"@type": "@id"
},
"creator": {
"@id": "dcterms:creator",
"@type": "@id"
Expand Down Expand Up @@ -173,6 +181,10 @@
"@id": "oteio:statement",
"@type": "@json"
},
"unit": {
"@id": "ddoc:unit",
"@type": "xsd:string"
},
"usageNote": {
"@id": "vann:usageNote",
"@language": "en"
Expand Down
17 changes: 17 additions & 0 deletions tripper/context/0.3/keywords.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ resources:
conformance: optional
description: An entity responsible for making contributions to the resource.

creationDate:
iri: dcterms:created
range: xsd:date
description: Date of creation (YYYY-MM-DD).

creationTime:
iri: ddoc:creationTime
range: xsd:time
description: Time of creation (HH:MM:SS).

creator:
iri: dcterms:creator
range: foaf:Agent
Expand Down Expand Up @@ -312,6 +322,13 @@ resources:
datatype: rdf:JSON
description: A list of subject-predicate-object triples with additional RDF statements documenting the resource.

unit:
iri: ddoc:unit
range: rdfs:Literal
datatype: xsd:string
description: A SI unit associated to a property.
usageNote: "The unit should be written with standard SI unit symbols. Examples: As, μm, J, m/s²"

usageNote:
iri: vann:usageNote
range: rdfs:Literal
Expand Down
4 changes: 2 additions & 2 deletions tripper/context/datadoc.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
dcterms:description "A datatype for annotations and data properties."@en .


:unitSymbol a owl:AnnotationProperty ;
rdfs:label "unitSymbol"@en ;
:unit a owl:AnnotationProperty ;
rdfs:label "unit"@en ;
#rdfs:subPropertyOf ;
rdfs:domain dcat:Resource ;
rdfs:range xsd:string ;
Expand Down
Loading