Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps towards 0.1 #1

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
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 .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# find a way to validate all files at once
- name: Validate Portal.ttl
uses: vemonet/[email protected]
with:
input: knowledge/Portal.ttl

- name: Validate GroundSurfaceEnumeration.ttl
uses: vemonet/[email protected]
with:
input: knowledge/GroundSurfaceEnumeration.ttl

- name: Validate Place.ttl
uses: vemonet/[email protected]
with:
input: knowledge/Place.ttl

- name: Validate Product.ttl
uses: vemonet/[email protected]
with:
input: knowledge/Product.ttl

- name: Validate Thing.ttl
uses: vemonet/[email protected]
with:
input: knowledge/Thing.ttl

- name: Validate Toilet.ttl
uses: vemonet/[email protected]
with:
input: knowledge/Toilet.ttl
7 changes: 7 additions & 0 deletions BC-BREAKS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Backward Compatibility

We propose to change the following things:

* Change object of relation `:accessMode` - `:domainIncludes` from `:CreativeWork` to `:Thing`.
* Change object of relation `:accessModeSufficient` - `:domainIncludes` from `:CreativeWork` to `:Thing`.
* Change object of relation `:accessibilitySummary` - `:domainIncludes` from `:CreativeWork` to `:Thing`.
28 changes: 28 additions & 0 deletions example/ElevatorNotHoldingInLevel3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"@context": "https://schema.org/",
"@type":"Elevator",
"name": "Working elevator with level 3 not working.",
"hasOperationalStatus": [
{
"isWorking": "partially",
"validFrom": "2020-01-20 00:07:00",
"validThrough": "2020-01-20 00:18:00",
"connectedFloorLevel": [1, 2]
},
{
"isWorking": true,
"connectedFloorLevel": [1, 2, 3]
}
]
}

{
"@context": "https://schema.org/",
"@type":"Elevator",
"name": "Not working elevator.",
"hasOperationalStatus": [
{
"isWorking": false
}
]
}
7 changes: 7 additions & 0 deletions example/ParkingFacility.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"@context": "https://schema.org/",
"@type":"ParkingFacility",
"name": "Parking facility in front of a hotel.",
"description": "A parking facility which ground surface is dirt.",
"hasGroundSurface": "http://schema.org/GroundSurfaceDirt"
}
10 changes: 10 additions & 0 deletions example/Thing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"@context":"https://schema.org",
"@type":"Hotel",
"name": "Wheelchair accessible Hotel",
"physicalAccessibilityFeature": [
"fullWheelchairAccessible",
"tactileGuideStrips"
],
"physicalAccessibilityHazard": "noFlashingHazard"
}
69 changes: 69 additions & 0 deletions knowledge/AnimalPolicy.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
@prefix : <https://schema.org/> .
@prefix todo: <https://todo/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

#
# This file contains information about Thing > Intangible > AnimalPolicy.
#
# @see https://github.com/schemaorg/suggestions-questions-brainstorming/issues/39
#

#
# Classes
#
:AnimalPolicy a rdfs:Class ;
rdfs:subClassOf :Intangible;
rdfs:label "AnimalPolicy" ;
rdfs:comment """
Provides information about how the operators of an [[Organization]], [[Place]] or [[Service]] deal with
people accompanied by animals. This is relevant for people who need an assistance animal
(e.g. a guide dog), or travel with a pet.
""" .

#
# Properties
#
:allowsAnyDogs a rdf:Property ;
:domainIncludes :AnimalPolicy ;
:rangeIncludes :Boolean ;
rdfs:label "allowsAnyDogs" ;
rdfs:comment """
True if the place allows visitors to bring dogs in general, False if bringing them is explicitly
prohibited (with exception of assistance dogs, if allowsAssistanceDogs is True).
""" .

:allowsAssistanceDogs a rdf:Property ;
:domainIncludes :AnimalPolicy ;
:rangeIncludes :Boolean ;
rdfs:label "allowsAssistanceDogs" ;
rdfs:comment """
True if the place allows visitors to bring assistance/guide dogs, False if bringing them is
explicitly prohibited.
""" .

:allowsDogsOnlyWithMuzzle a rdf:Property ;
:domainIncludes :AnimalPolicy ;
:rangeIncludes :Boolean ;
rdfs:label "allowsDogsOnlyWithMuzzle" ;
rdfs:comment """
True if the place denies entry to visitors bringing a dogs without muzzles,
False if dogs without muzzles are explicitly allowed.
""" .

:suppliesWaterForAnimals a rdf:Property ;
:domainIncludes :AnimalPolicy ;
:rangeIncludes :Boolean ;
rdfs:label "suppliesWaterForAnimals" ;
rdfs:comment """
True if the place supplies water for accompanying animals, False if explicitly not.
""" .

:allowsDogsOnlyWithLeash a rdf:Property ;
:domainIncludes :AnimalPolicy ;
:rangeIncludes :Boolean ;
rdfs:label "allowsDogsOnlyWithLeash" ;
rdfs:comment """
True if the place denies entry to visitors bringing a dogs without leash,
False if dogs without leash are explicitly allowed.
""" .
131 changes: 131 additions & 0 deletions knowledge/Door.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
@prefix : <https://schema.org/> .
@prefix todo: <https://todo/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

#
# This file contains information about Thing > Product > Door.
#
# @see https://github.com/schemaorg/suggestions-questions-brainstorming/issues/39
#

#
# Classes
#
:Door a rdfs:Class ;
rdfs:subClassOf :Product;
rdfs:label "Door" ;
:sameAs <https://dbpedia.org/page/Door> ;
:sameAs <https://www.wikidata.org/wiki/Q36794> ;
rdfs:comment """
A door is a hinged or otherwise movable barrier that allows ingress into and egress from an enclosure.
The created opening in the wall is a doorway or portal. A door's essential and primary purpose is to
provide security by controlling access to the doorway (portal). Conventionally, it is a panel that fits
into the portal of a building, room, or vehicle. Doors are generally made of a material suited to the door's #
task. Doors are commonly attached by hinges, but can move by other means, such as slides or counterbalancing.
([Wikipedia](https://en.wikipedia.org/wiki/Door))
""" .

#
# Properties
#
:isAlwaysOpen a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Boolean ;
rdfs:label "isAlwaysOpen" ;
rdfs:comment """
True if the door is always open, False if not.
""" .

:isAutomatic a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Boolean ;
rdfs:label "isAutomatic" ;
rdfs:comment """
True if the door is fully automatic, False if it has to be opened or closed manually.
""" .

:isSelfClosing a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Boolean ;
rdfs:label "isSelfClosing" ;
rdfs:comment """
True if the door closes automatically, False if it has to be closed manually.
""" .

:isRevolving a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Boolean ;
rdfs:label "isRevolving" ;
rdfs:comment """
True if the door is a revolving door, False if not.
""" .

:isTurnstile a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Boolean ;
rdfs:label "isTurnstile" ;
rdfs:comment """
True if the door is a turnstile, False if not.
""" .

:isTransparent a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Boolean ;
rdfs:label "isTransparent" ;
rdfs:comment """
True if the door is made of transparent material, False if not. Relevant for people with visual impairments.
""" .

:openingForce a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :QuantitativeValue ;
rdfs:label "openingForce" ;
rdfs:comment """
Force needed to open the door completely, given in lbs. This is relevant for accessibility - Interior
doors should require no more than 5 lbs. of force to open.
""" .

:closingSpeed a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :QuantitativeValue ;
rdfs:label "closingSpeed" ;
rdfs:comment """
Speed taken for the door from its full open position to the degree where the latch phase begins.
Given in degrees (for doors with a rotational axis) or distance (for linear doors) per time.
""" .

:latchingSpeed a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :QuantitativeValue ;
rdfs:label "latchingSpeed" ;
rdfs:comment """
Speed taken for the door to close and latch shut over the last degrees of its closing phase.
Given in degrees (for doors with a rotational axis) or distance (for linear doors) per time.
""" .

:turningSpaceRadius a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :QuantitativeValue ;
rdfs:label "turningSpaceRadius" ;
rdfs:comment """
Turning space available for using this door. Relevant for wheelchair and rollator accessibility.
If this attribute is given, it should at least have a minValue property.
""" .

:needsPhysicalKeyOrCard a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :Text ;
rdfs:label "needsPhysicalKeyOrCard" ;
rdfs:comment """
Standardized key needed to access this place, e.g. 'radarPhysicalKey' for a RADAR key, or 'euroPhysicalKey' for a Euro key.
""" .

:operationalStatus a rdf:Property ;
:domainIncludes :Door ;
:rangeIncludes :OperationalStatus ;
rdfs:label "operationalStatus" ;
rdfs:comment """
Describes if the door is currently usable. Can be used for real-time status updates.
""" .

70 changes: 70 additions & 0 deletions knowledge/Elevator.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@prefix : <https://schema.org/> .
@prefix todo: <https://todo/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

#
# This file contains information about Thing > Product > Vehicle > Elevator.
#
# @see https://github.com/schemaorg/suggestions-questions-brainstorming/issues/39
#

#
# Classes
#
:Elevator a rdfs:Class ;
rdfs:subClassOf :Vehicle;
rdfs:label "Elevator" ;
:sameAs <https://dbpedia.org/page/Elevator> ;
:sameAs <https://www.wikidata.org/wiki/Q132911> ;
rdfs:comment """
Describes a physical elevator that transports people or goods vertically. If properties of the supertypeVehicle are used, they should describe the
elevator’s cabin, moving platform, or sling. If a cabin or platform is part of the elevator, it's width and depth properties should be included for
saccessibility.
""" .

#
# Properties
#
:door a rdf:Property ;
:domainIncludes :Elevator ;
:rangeIncludes :Door ;
rdfs:label "door" ;
rdfs:comment """
List containing descriptions of the elevator’s door(s).
""" .

:hasDoorsInOppositeDirections a rdf:Property ;
:domainIncludes :Elevator ;
:rangeIncludes :Boolean ;
rdfs:label "hasDoorsInOppositeDirections" ;
rdfs:comment """
True if the equipment has doors in opposite directions. Relevant for people using a wheelchair, rollator,
cargo bike or pushchair to know if they have to turn.
""" .

:connectedFloorLevels a rdf:Property ;
:domainIncludes :Elevator ;
:rangeIncludes :Text ;
rdfs:label "connectedFloorLevels" ;
rdfs:comment """
The connected floor levels in a multi-storey building, as list, if applicable. Since counting systems
vary internationally, the local system should be used where possible.
""" .

:operationalStatus a rdf:Property ;
:domainIncludes :Elevator ;
:rangeIncludes :OperationalStatus ;
rdfs:label "operationalStatus" ;
rdfs:comment """
Describes current usability of the facility. Can be used for real-time status updates.
""" .

:alternativeWays a rdf:Property ;
:domainIncludes :Elevator ;
:rangeIncludes :Thing ;
rdfs:label "alternativeWays" ;
rdfs:comment """
If there are alternative routes to this elevator, they can be linked using this property.
""" .

Loading