Skip to content

Commit

Permalink
#1: proposal/highway=track.wiki.ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Dec 20, 2022
1 parent b23fdbb commit 1536b6f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
36 changes: 26 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
function escapeExample(utils, content, url) {
return content.replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
function escapeExamplePREFIX(utils, content, url) {
return content.replace(/PREFIX(.*)/g, "");
function removeExamplePREFIX(utils, content, url) {
return content.replace(/PREFIX (.*)/g, "");
}
function escapeExampleCommentsLineStart(utils, content, url) {
return content.replace(/^# (.*)/g, "");
Expand Down Expand Up @@ -258,7 +258,7 @@ <h3>Node</h3>
</pre>

<pre class="example" title="The reference Node in RDF/Turtle" data-content-type="text/turtle"
data-oninclude="escapeExample escapeExamplePREFIX" data-include="proposal/node-1.ttl">
data-oninclude="escapeExample removeExamplePREFIX" data-include="proposal/node-1.ttl">
</pre>
</section>

Expand All @@ -274,7 +274,7 @@ <h3>Way</h3>
</pre>

<pre class="example" title="The reference Way in RDF/Turtle" data-content-type="text/turtle"
data-oninclude="escapeExample escapeExamplePREFIX" data-include="proposal/way-100.ttl">
data-oninclude="escapeExample removeExamplePREFIX" data-include="proposal/way-100.ttl">
</pre>
</section>

Expand All @@ -290,7 +290,7 @@ <h3>Relation</h3>
</pre>

<pre class="example" title="The reference Relation in RDF/Turtle" data-content-type="text/turtle"
data-oninclude="escapeExample escapeExamplePREFIX" data-include="proposal/relation-10000.ttl"></pre>
data-oninclude="escapeExample removeExamplePREFIX" data-include="proposal/relation-10000.ttl"></pre>
</section>

<section>
Expand Down Expand Up @@ -349,8 +349,10 @@ <h3>Wiki Infobox Tag</h3>
</div>
<pre class="example" title="Tag:highway=track (reference)" data-content-type="txt" data-oninclude="escapeExample"
data-include="reference/highway=track.wiki.txt"></pre>
<!-- <pre class="example" title="Tag:highway=track in RDF/Turtle" data-content-type="text/turtle"
data-oninclude="escapeExample removeExamplePREFIX" data-include="proposal/highway=track.wiki.ttl"></pre> -->
<pre class="example" title="Tag:highway=track in RDF/Turtle" data-content-type="text/turtle"
data-oninclude="escapeExample escapeExamplePREFIX" data-include="proposal/highway=track.wiki.ttl"></pre>
data-oninclude="escapeExample" data-include="proposal/highway=track.wiki.ttl"></pre>
</section>
</section>

Expand Down Expand Up @@ -581,12 +583,11 @@ <h2>Quality Assurance</h2>
<h3>JSOM data validator (mapcss)</h3>
<pre class="example" title="highway.mapcss (reference)" data-content-type="css" data-oninclude=""
data-include="reference/qa/highway.mapcss"></pre>
<pre class="example" title="proposal/qa/highway.shacl.ttl (SHACL)" data-content-type="text/turtle" data-oninclude="escapeExample escapeExamplePREFIX"
<pre class="example" title="proposal/qa/highway.shacl.ttl (SHACL)" data-content-type="text/turtle" data-oninclude="escapeExample removeExamplePREFIX"
data-include="proposal/shacl/highway.shacl.ttl"></pre>
</section>
</section>


<section>
<h2>SHACL</h2>
<p>
Expand All @@ -601,15 +602,30 @@ <h3>Data Primitives SHACL</h3>
But this use might be not necessary if the input data is known to be working (e.g. either database or validations of file formats would detect syntax errors).
</p>
<pre class="example" title="poc/osm-wiki-onto2023.shacl.ttl" data-content-type="text/turtle"
data-oninclude="escapeExample escapeExamplePREFIX" data-include="poc/osm-wiki-onto2023.shacl.ttl"></pre>
data-oninclude="escapeExample removeExamplePREFIX" data-include="poc/osm-wiki-onto2023.shacl.ttl"></pre>
</section>
</section>

<section>
<h2>Inference</h2>
<p class="ednote" title="">
The inference may be moved out of this document.
</p>
<section>
<h3>Wiki explanation about maxspeed</h3>

<pre class="example" title="proposal/text/maxspeed-simple.md (reference)" data-content-type="text" data-oninclude=""
data-include="proposal/text/maxspeed-simple.md"></pre>

<!-- <pre class="example" title="Tag:highway=track in RDF/Turtle" data-content-type="text/turtle"
data-oninclude="escapeExample" data-include="proposal/highway=track.wiki.ttl"></pre> -->
</section>
</section>

<section class="appendix informative">
<h2>Data Primitives Ontology</h2>
<pre class="example" title="poc/osm-wiki-onto2023.owl.ttl" data-content-type="text/turtle"
data-oninclude="escapeExample escapeExamplePREFIX" data-include="poc/osm-wiki-onto2023.owl.ttl"></pre>
data-oninclude="escapeExample removeExamplePREFIX" data-include="poc/osm-wiki-onto2023.owl.ttl"></pre>
</section>
<!--
<section data-dfn-for="Foo">
Expand Down
4 changes: 1 addition & 3 deletions proposal/highway=track.wiki.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ PREFIX osmt: <https://example.org/todo-tag/>
PREFIX osmw: <https://wiki.openstreetmap.org/wiki/>
PREFIX ex: <https://example.org/>

# @FIXME decide ex:_ prefix for something better

# @FIXME use better prefix than ex:_
<https://wiki.openstreetmap.org/wiki/Tag:highway=track>
# osmm:highway=track
a osmw:Tag ;
ex:_key "highway" ;
ex:_value "track" ;
Expand Down
4 changes: 4 additions & 0 deletions proposal/text/maxspeed-simple.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Maxspeed example
> @see https://wiki.openstreetmap.org/wiki/Default_speed_limits
- World level: maximum explicitly speed = 140 km/h or 75 mph

0 comments on commit 1536b6f

Please sign in to comment.