-
Notifications
You must be signed in to change notification settings - Fork 1
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
Namespace for routes specification #15
Comments
I don't clearly understand what this namespace will be used for. Currently I'm considering as an importing point a normal .gpx file, that is one that follows the standard. If what is being suggested is that we should populate the .gpx with information of our app I strongly disagree. I believe that extra information should be provided when using the app (a form, or whatever) and should be recorded and saved by means of the viadeSpec that is currently being discussed. |
I have put a placeholder file at https://www.w3.org/ns/pim/gpx.n3 (also .ttl,rdf) I imagine this would be use for RDF arcs converted directly from GPX files, and the namespace would refer to that standard. So where any app needs the semantics of those properties it could use that ontology. |
I have created a possible ShEx schema for gpx converting the XML Schema specification for gpx 1.1. As an example, this GPX file obtained from Wikipedia could be represented in Turtle as: prefix : <http://example.org/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix gpx: <https://www.w3.org/ns/pim/gpx#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
:myRoute
gpx:metadata [
gpx:link [
gpx:href "http://www.garmin.com"^^xsd:anyURI ;
gpx:text "Garmin International" ;
] ;
gpx:time "2009-10-17T22:58:43Z"^^xsd:dateTime ;
] ;
gpx:trk [
gpx:name "Example GPX Document" ;
gpx:trkseg [
gpx:trkpts (
[ gpx:trkpt [
gpx:lat 47.644548 ;
gpx:lon -122.326897 ;
gpx:ele 4.46 ;
gpx:time "2009-10-17T18:37:26Z"^^xsd:dateTime
]
]
[ gpx:trkpt [
gpx:lat 47.644548 ;
gpx:lon -122.326897 ;
gpx:ele 4.94 ;
gpx:time "2009-10-17T18:37:26Z"^^xsd:dateTime
]
]
[ gpx:trkpt [
gpx:lat 47.644548 ;
gpx:lon -122.326897 ;
gpx:ele 6.87 ;
gpx:time "2009-10-17T18:37:26Z"^^xsd:dateTime
]
]
)
]
] . |
@luispc1998 the idea of namespaces is that you can combine in Turtle elements from different namespaces easily. At the end, must nodes in Turtle are just URIs and namespaces are a mechanism to simplify those URIs. The idea of defining a For example, we could use something like:
which combines elements from |
This namespace now has some hacked together namespace support |
Suggest people use that instead of the hackdiary one. |
@timbl Great! I was looking at it and I think the attributes in XML Schema are missing. For example: The list of missing attributes/properties is:
Some of those attributes could be represented with properties from other namespaces. For example: |
(Yes, @luispc1998 that idea that a typical file or message in a system will include a mixture of languages at the same time and that is not weird just normal is wha I tried to convey in a |
I have made a rep for the GPX ontology. PRs welcome, maintainers? |
It is important to define a proper namespace for the different properties and types.
One possibility is to define our own namespace, something like:
http://arquisoft.github.io/viadeSpec/
where we could define the new properties defined for viadeSpec.Another possibility could be to define properties according to other formats like GPX and to adopt a more general namespace for them.
One possibility, suggested by @timbl here could be to ask the W3C to create something like:
https://www.w3.org/ns/pim/gpx#
and to populate that namespace with the gpx properties.The text was updated successfully, but these errors were encountered: