Commit feea73db authored by Andrei Popescu's avatar Andrei Popescu
Browse files

adapted solution to gbfs

parent 5ca018cf
Pipeline #54991 passed with stage
in 32 seconds
@prefix gbfs: <https://w3id.org/gbfs/terms>.
@prefix schema: <http://schema.org/#>.
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix jsonsc: <https://www.w3.org/2019/wot/json-schema#>.
@prefix airs: <https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#>.
@prefix vso: <http://purl.org/vso/ns#>.
@prefix dbpedia-owl: <http://dbpedia.org/ontology/>.
<https://w3id.org/sdm/terms/alerts> rdf:type foaf:Document;
rdfs:comment "Describes ad-hoc changes to the system."@en;
vann:preferredNamespaceUri "https://w3id.org/sdm/terms/alerts#".
<https://w3id.org/sdm/terms/> dcterms:creator <https://pietercolpaert.be/#me>, <https://www.linkedin.com/in/andrei-popescu/>.
gbfs:times rdf:type rdf:Property;
rdfs:range gbfs:Times;
rdfs:label "Array of objects indicating when the alert is in effect."@en.
gbfs:properties rdf:type rdf:Property;
rdfs:range gbfs:Properties;
rdfs:label "Array of objects indicating when the alert is in effect."@en.
gbfs:station_ids rdf:type rdf:Property;
rdfs:range gbfs:Station_ids;
rdfs:label "Array of identifiers of the stations for which this alert applies."@en.
gbfs:region_ids rdf:type rdf:Property;
rdfs:range gbfs:Region_ids;
rdfs:label "Array of identifiers of the regions for which this alert applies."@en.
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/station>;
sh:property [
sh:path <address>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <rental_methods>;
sh:maxCount 1;
];
sh:property [
sh:path <enum>;
sh:maxCount 1;
];
sh:property [
sh:path <is_virtual_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <station_area>;
sh:maxCount 1;
];
sh:property [
sh:path <coordinates>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_capacity>;
sh:maxCount 1;
];
sh:property [
sh:path <is_valet_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <is_charging_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <rental_uris>;
sh:maxCount 1;
];
sh:property [
sh:path <android>;
sh:maxCount 1;
];
sh:property [
sh:path <ios>;
sh:maxCount 1;
];
sh:property [
sh:path <web>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_type_capacity>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/bike>;
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/alert>;
sh:property [
sh:path <times>;
sh:maxCount 1;
];
sh:property [
sh:path <properties>;
sh:maxCount 1;
];
sh:property [
sh:path <station_ids>;
sh:maxCount 1;
];
sh:property [
sh:path <region_ids>;
sh:maxCount 1;
];
@prefix gbfs: <https://w3id.org/gbfs/terms>.
@prefix schema: <http://schema.org/#>.
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix jsonsc: <https://www.w3.org/2019/wot/json-schema#>.
@prefix airs: <https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#>.
@prefix vso: <http://purl.org/vso/ns#>.
@prefix dbpedia-owl: <http://dbpedia.org/ontology/>.
<https://w3id.org/sdm/terms/bikes> rdf:type foaf:Document;
rdfs:comment "Describes the vehicles that are available for rent (as of v2.1-RC2)."@en;
vann:preferredNamespaceUri "https://w3id.org/sdm/terms/bikes#".
<https://w3id.org/sdm/terms/> dcterms:creator <https://pietercolpaert.be/#me>, <https://www.linkedin.com/in/andrei-popescu/>.
gbfs:is_reserved owl:oneOf _:undefined.
gbfs:is_disabled owl:oneOf _:undefined.
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/station>;
sh:property [
sh:path <address>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <rental_methods>;
sh:maxCount 1;
];
sh:property [
sh:path <enum>;
sh:maxCount 1;
];
sh:property [
sh:path <is_virtual_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <station_area>;
sh:maxCount 1;
];
sh:property [
sh:path <coordinates>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_capacity>;
sh:maxCount 1;
];
sh:property [
sh:path <is_valet_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <is_charging_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <rental_uris>;
sh:maxCount 1;
];
sh:property [
sh:path <android>;
sh:maxCount 1;
];
sh:property [
sh:path <ios>;
sh:maxCount 1;
];
sh:property [
sh:path <web>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_type_capacity>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/bike>;
@prefix gbfs: <https://w3id.org/gbfs/terms>.
@prefix schema: <http://schema.org/#>.
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix jsonsc: <https://www.w3.org/2019/wot/json-schema#>.
@prefix airs: <https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#>.
@prefix vso: <http://purl.org/vso/ns#>.
@prefix dbpedia-owl: <http://dbpedia.org/ontology/>.
<https://w3id.org/sdm/terms/calendars> rdf:type foaf:Document;
rdfs:comment "Describes the operating calendar for a system."@en;
vann:preferredNamespaceUri "https://w3id.org/sdm/terms/calendars#".
<https://w3id.org/sdm/terms/> dcterms:creator <https://pietercolpaert.be/#me>, <https://www.linkedin.com/in/andrei-popescu/>.
gbfs:start_month rdfs:range xsd:integer;
rdfs:label "Starting month for the system operations."@en.
gbfs:start_day rdfs:range xsd:integer;
rdfs:label "Starting day for the system operations."@en.
gbfs:start_year rdfs:range xsd:integer;
rdfs:label "Starting year for the system operations."@en.
gbfs:end_month rdfs:range xsd:integer;
rdfs:label "End month for the system operations."@en.
gbfs:end_day rdfs:range xsd:integer;
rdfs:label "End day for the system operations."@en.
gbfs:end_year rdfs:range xsd:integer;
rdfs:label "End year for the system operations."@en.
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/station>;
sh:property [
sh:path <address>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <rental_methods>;
sh:maxCount 1;
];
sh:property [
sh:path <enum>;
sh:maxCount 1;
];
sh:property [
sh:path <is_virtual_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <station_area>;
sh:maxCount 1;
];
sh:property [
sh:path <coordinates>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_capacity>;
sh:maxCount 1;
];
sh:property [
sh:path <is_valet_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <is_charging_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <rental_uris>;
sh:maxCount 1;
];
sh:property [
sh:path <android>;
sh:maxCount 1;
];
sh:property [
sh:path <ios>;
sh:maxCount 1;
];
sh:property [
sh:path <web>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_type_capacity>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/bike>;
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/alert>;
sh:property [
sh:path <times>;
sh:maxCount 1;
];
sh:property [
sh:path <properties>;
sh:maxCount 1;
];
sh:property [
sh:path <station_ids>;
sh:maxCount 1;
];
sh:property [
sh:path <region_ids>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/region>;
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/vehicleType>;
sh:property [
sh:path <form_factor>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <propulsion_type>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <max_range_meters>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <default_reserve_time>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
sh:property [
sh:path <return_type>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_assets>;
sh:maxCount 1;
];
sh:property [
sh:path <icon_url>;
sh:maxCount 1;
];
sh:property [
sh:path <icon_url_dark>;
sh:maxCount 1;
];
sh:property [
sh:path <icon_last_modified>;
sh:maxCount 1;
];
sh:property [
sh:path <default_pricing_plan_id>;
sh:maxCount 1;
];
sh:property [
sh:path <pricing_plan_ids>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/pricingPlan>;
sh:property [
sh:path <plan_id>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <currency>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <price>;
sh:maxCount 1;
sh:datatype xsd:float;
];
sh:property [
sh:path <is_taxable>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <per_km_pricing>;
sh:maxCount 1;
];
sh:property [
sh:path <required>;
sh:maxCount 1;
];
sh:property [
sh:path <per_min_pricing>;
sh:maxCount 1;
];
sh:property [
sh:path <surge_pricing>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/version>;
sh:property [
sh:path <version>;
sh:minCount 1;
sh:maxCount 1;
sh:datatype xsd:string;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/calendar>;
sh:property [
sh:path <start_month>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
sh:property [
sh:path <start_day>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
sh:property [
sh:path <start_year>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
sh:property [
sh:path <end_month>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
sh:property [
sh:path <end_day>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
sh:property [
sh:path <end_year>;
sh:maxCount 1;
sh:datatype xsd:integer;
];
@prefix gbfs: <https://w3id.org/gbfs/terms>.
@prefix schema: <http://schema.org/#>.
@prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#>.
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>.
@prefix vann: <http://purl.org/vocab/vann/>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix jsonsc: <https://www.w3.org/2019/wot/json-schema#>.
@prefix airs: <https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#>.
@prefix vso: <http://purl.org/vso/ns#>.
@prefix dbpedia-owl: <http://dbpedia.org/ontology/>.
<https://w3id.org/sdm/terms/plans> rdf:type foaf:Document;
rdfs:comment "Describes the pricing schemes of the system."@en;
vann:preferredNamespaceUri "https://w3id.org/sdm/terms/plans#".
<https://w3id.org/sdm/terms/> dcterms:creator <https://pietercolpaert.be/#me>, <https://www.linkedin.com/in/andrei-popescu/>.
gbfs:plan_id rdfs:range xsd:string;
rdfs:label "Identifier of a pricing plan in the system."@en.
gbfs:currency rdfs:range xsd:string;
rdfs:label "Currency used to pay the fare in ISO 4217 code."@en.
gbfs:price rdfs:range xsd:integer;
rdfs:label "Fare price."@en.
gbfs:is_taxable rdfs:range xsd:boolean;
rdfs:label "Will additional tax be added to the base price?"@en.
gbfs:per_km_pricing rdf:type rdf:Property;
rdfs:range gbfs:Per_km_pricing;
rdfs:label "Array of segments when the price is a function of distance travelled, displayed in kilometers (added in v2.1-RC2)."@en.
gbfs:required rdf:type rdf:Property;
rdfs:range gbfs:Required;
rdfs:label "Array of segments when the price is a function of distance travelled, displayed in kilometers (added in v2.1-RC2)."@en.
gbfs:per_min_pricing rdf:type rdf:Property;
rdfs:range gbfs:Per_min_pricing;
rdfs:label "Array of segments when the price is a function of time travelled, displayed in minutes (added in v2.1-RC2)."@en.
gbfs:surge_pricing rdfs:range xsd:boolean;
rdfs:label "Is there currently an increase in price in response to increased demand in this pricing plan? (added in v2.1-RC2)"@en.
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/station>;
sh:property [
sh:path <address>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <rental_methods>;
sh:maxCount 1;
];
sh:property [
sh:path <enum>;
sh:maxCount 1;
];
sh:property [
sh:path <is_virtual_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <station_area>;
sh:maxCount 1;
];
sh:property [
sh:path <coordinates>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_capacity>;
sh:maxCount 1;
];
sh:property [
sh:path <is_valet_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <is_charging_station>;
sh:maxCount 1;
sh:datatype xsd:boolean;
];
sh:property [
sh:path <rental_uris>;
sh:maxCount 1;
];
sh:property [
sh:path <android>;
sh:maxCount 1;
];
sh:property [
sh:path <ios>;
sh:maxCount 1;
];
sh:property [
sh:path <web>;
sh:maxCount 1;
];
sh:property [
sh:path <vehicle_type_capacity>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/bike>;
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/alert>;
sh:property [
sh:path <times>;
sh:maxCount 1;
];
sh:property [
sh:path <properties>;
sh:maxCount 1;
];
sh:property [
sh:path <station_ids>;
sh:maxCount 1;
];
sh:property [
sh:path <region_ids>;
sh:maxCount 1;
];
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/region>;
<https://w3id.org/gbfs/terms/> a sh:NodeShape;
sh:targetClass <https://w3id.org/gbfs/terms/vehicleType>;
sh:property [
sh:path <form_factor>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property [
sh:path <propulsion_type>;
sh:maxCount 1;
sh:datatype xsd:string;
];
sh:property