From 1858e539026920e4781cafe4c252512cdf2b56a2 Mon Sep 17 00:00:00 2001 From: Carlos Manrique Enguita <9149238+UO258425@users.noreply.github.com> Date: Mon, 24 Feb 2020 14:02:19 +0100 Subject: [PATCH 1/2] Proposal for a route standard --- main/introduction.bs | 51 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/main/introduction.bs b/main/introduction.bs index b1b5a9e..d82916b 100644 --- a/main/introduction.bs +++ b/main/introduction.bs @@ -24,7 +24,54 @@ that reads or writes data from one or more [=data pods=]. ## Data model ## {#dataModel} -To be done. +A **route** must contain a name, optionally it can have a description. +Its composed by at least one GeoCoordinate and may or not have a list of comments and media elements. -Issue: Define data model +The **GeoCoordinates** must have latitude and longitude. They can have as optional properties a name, altitude and a physical address. + +A **UserComment** must contain the text of the comment, the time it was published and the author, being the last one a IRI to a pod profile shape. + +And finally, an **Image** or a **Video** must have an IRI to te resource, another IRI to the pod profile of the author and the time it was published. + +
+PREFIX :
+PREFIX schema:
+PREFIX xsd:
+
+# Node Constraint
+:Route {
+ # Triple constraint
+ schema:name xsd:string ;
+ schema:description xsd:string? ;
+ schema:containsGeoPoint IRI @:GeoCoordinates+;
+ schema:hasComments IRI @:UserComment*;
+ schema:hasMediaAttached [IRI @:Image IRI @:Video]*;
+}
+
+:GeoCoordinates {
+ schema:name xsd:string? ;
+ schema:address xsd:string? ;
+ schema:elevation xsd:integer?;
+ schema:latitude xsd:float ;
+ schema:longitude xsd:float ;
+}
+
+:UserComment {
+ schema:text xsd:string;
+ schema:publishedDate xsd:datetime;
+ schema:author URI @:PodProfile;
+}
+
+:Image {
+ schema:contentUrl IRI;
+ schema:publishedDate xsd:datetime;
+ schema:author URI @:PodProfile;
+}
+
+:Video {
+ schema:contentUrl IRI;
+ schema:publishedDate xsd:datetime;
+ schema:author URI @:PodProfile;
+}
+
From 1c1ee8bfe0ed66f7a84d27b6786869bb05cb1824 Mon Sep 17 00:00:00 2001
From: Carlos Manrique Enguita <9149238+UO258425@users.noreply.github.com>
Date: Thu, 27 Feb 2020 21:05:24 +0100
Subject: [PATCH 2/2] Add position to geocordinates
---
main/introduction.bs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main/introduction.bs b/main/introduction.bs
index d82916b..467df85 100644
--- a/main/introduction.bs
+++ b/main/introduction.bs
@@ -51,9 +51,10 @@ PREFIX xsd: