Skip to content

Commit

Permalink
feat (archive org): add archive organization type
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasschweizer committed Sep 2, 2024
1 parent a3b9ec0 commit 7d733b1
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ontology/ontology.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"rdfs:label": "RESCS SHACL Shapes",
"owl:versionInfo": {
"@type": "xsd:date",
"@value": "2024-06-10"
"@value": "2024-09-02"
}
},
{
Expand Down
1 change: 1 addition & 0 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ validate "monetarygrant" "monetarygrant"
validate "place" "place"
validate "project" "edge_project"
validate "archivecomponent" "archivecomponent"
validate "archiveorganization" "archiveorganization"

# attempt throws an error if object is valid
attempt "thing" "bad_thing"
Expand Down
27 changes: 27 additions & 0 deletions shapes/archiveorganization/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"@context": [
"https://incf.github.io/neuroshapes/contexts/schema.json",
{
"this": "http://rescs.org/dash/archiveorganization/"
}
],
"@type": "nxv:Schema",
"@id": "http://rescs.org/dash/archiveorganization",
"imports": [
"http://rescs.org/dash/localbusiness"
],
"shapes": [
{
"@id": "this:ArchiveOrganizationShape",
"@type": "sh:NodeShape",
"label": "ArchiveOrganization",
"comment": "An organization with archival holdings. An organization which keeps and preserves archival material and typically makes it accessible to the public.",
"targetClass": "schema:ArchiveOrganization",
"and": [
{
"node": "http://rescs.org/dash/localbusiness/LocalBusinessShape"
}
]
}
]
}
27 changes: 27 additions & 0 deletions shapes/localbusiness/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"@context": [
"https://incf.github.io/neuroshapes/contexts/schema.json",
{
"this": "http://rescs.org/dash/localbusiness/"
}
],
"@type": "nxv:Schema",
"@id": "http://rescs.org/dash/localbusiness",
"imports": [
"http://rescs.org/dash/organization"
],
"shapes": [
{
"@id": "this:LocalBusinessShape",
"@type": "sh:NodeShape",
"label": "Local business",
"comment": "A particular physical business or branch of an organization. Examples of LocalBusiness include a restaurant, a particular branch of a restaurant chain, a branch of a bank, a medical practice, a club, a bowling alley, etc.",
"targetClass": "schema:LocalBusiness",
"and": [
{
"node": "http://rescs.org/dash/organization/OrganizationShape"
}
]
}
]
}
87 changes: 87 additions & 0 deletions test/archiveorganization/archiveorganization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"@context": {
"@vocab": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@type": "ArchiveOrganization",
"alternateName": "My alias name",
"description": "a description",
"identifier": {
"@id": "http://www.example.com/1"
},
"image": {
"@id": "http://www.example.com/2"
},
"name": "a name",
"sameAs": {
"@id": "http://www.example.com/3"
},
"url": {
"@id": "http://www.example.com/4"
},
"address": "Fakestreet, Faketown",
"email": "[email protected]",
"contactPoint": {
"@id": "http://www.contact.com/1",
"@type": "ContactPoint",
"name": "a contact point,",
"availableLanguage": "eng",
"contactType": "sales",
"email": "[email protected]"
},
"funder": {
"@id": "http://www.example.com/5",
"@type": "Person",
"name": "John Doe",
"address": "Fakestreet, Faketown",
"email": "[email protected]",
"familyName": "Doe",
"givenName": "John",
"jobTitle": "developer",
"affiliation": {
"@id": "http://www.example.com/6",
"@type": "Organization",
"name": "my org",
"address": "Fakestreet, Faketown",
"email": "[email protected]",
"contactPoint": {
"@id": "http://www.contact.com/1",
"@type": "ContactPoint",
"name": "a contact point,",
"availableLanguage": "eng",
"contactType": "sales",
"email": "[email protected]"
}
}
},
"member": {
"@id": "http://www.example.com/5"
},
"subOrganization": {
"@id": "http://www.example.com/7",
"@type": "Organization",
"name": "my suborg",
"email": "[email protected]",
"address": "Fakerstreet, Fakertown",
"contactPoint": {
"@id": "http://www.contact.com/1"
}
},
"department": {
"@id": "http://www.example.com/8",
"@type": "Organization",
"name": "my department",
"email": "[email protected]",
"address": "Fakerstreet, Fakertown",
"contactPoint": {
"@id": "http://www.contact.com/1"
}
},
"keywords": [
"creative",
"work",
{
"@id": "http://www.taxonomy.com/1"
}
]
}

0 comments on commit 7d733b1

Please sign in to comment.