Skip to content

Commit

Permalink
name-suggestion-index references added
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Dec 7, 2022
1 parent 8fca762 commit e211e83
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ arq --query=proposal/query/geosparq-example.rq --data=poc/tmp/geosparql_test.rdf
curl --output poc/tmp/geosparql_vocab_all.rdf http://schemas.opengis.net/geosparql/1.0/geosparql_vocab_all.rdf
curl --output poc/tmp/tagfinder_thesaurus.rdf http://tagfinder.herokuapp.com/tagfinder_thesaurus.rdf
rdfpipe --output-format=longturtle poc/tmp/tagfinder_thesaurus.rdf > poc/tmp/tagfinder_thesaurus.rdf.ttl
# @TODO make tests with https://dbpedia.org/sparql
# @TODO maybe use as example (because of implies)
# - https://wiki.openstreetmap.org/wiki/Item:Q4980
# - https://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway
/opt/Protege-5.5.0/run.sh
-->


Expand All @@ -87,6 +91,8 @@ curl --output poc/tmp/geosparql_vocab_all.rdf http://schemas.opengis.net/geospar
- https://wiki.openstreetmap.org/wiki/Sophox#How_OSM_data_is_stored
- (names?)
- [LinkedGeoData](https://wiki.openstreetmap.org/wiki/LinkedGeoData)
- (names?)
- <http://tagfinder.herokuapp.com/tagfinder_thesaurus.rdf>

## Disclaimers
<!--
Expand Down
57 changes: 54 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{
name: "Emerson Rocha",
company: "EticaAI",
url: "https://github.com/fititnt/"
url: "https://orcid.org/0000-0002-9022-8054"
},
{
name: "(Open to new editors!)",
Expand Down Expand Up @@ -333,15 +333,19 @@ <h3>Wiki Infobox Tag</h3>
<h2>Presets</h2>
<p>See <a href="https://wiki.openstreetmap.org/wiki/Preset">https://wiki.openstreetmap.org/wiki/Preset</a>.</p>

<p class="ednote" title="name-suggestion-index presets">
name-suggestion-index also releases their data as Presets? Humm. See
<a href="https://github.com/osmlab/name-suggestion-index/tree/main/dist/presets">https://github.com/osmlab/name-suggestion-index/tree/main/dist/presets</a>.
</p>
<!--
- About unifying presets
- https://github.com/osmlab/editor-presets/issues/1
- https://github.com/osmlab/osm-planning/issues/27#issuecomment-1018930029
- https://github.com/openstreetmap/id-tagging-schema/issues/646
-->

<section>
<h3>iD style presets</h3>

<ul>
<li>
<a href="https://wiki.openstreetmap.org/wiki/Preset#iD">
Expand All @@ -353,12 +357,18 @@ <h3>iD style presets</h3>
https://github.com/openstreetmap/id-tagging-schema/
</a>
</li>
<li>
<a href="https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-id-presets.json">
https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-id-presets.json
</a>
</li>
</ul>
</section>
<section>
<h3>JOSM style presets</h3>
<div class="issue" data-number="3">
Opinions are welcome.
Opinions are welcome.<br>
What about https://wiki.openstreetmap.org/wiki/Name_Suggestion_Index ?
</div>
<ul>
<li>
Expand All @@ -383,6 +393,9 @@ <h3>JOSM style presets</h3>
<pre class="example" title="A JSOM Preset (canonical) reference, preset-josm-gas" data-content-type="xml"
data-oninclude="escapeExample" data-include="reference/preset/preset-josm-gas.xml">
</pre>
<pre class="example" title="A NSI+JSOM Preset (canonical) reference, preset-nsi-josm" data-content-type="xml"
data-oninclude="escapeExample" data-include="reference/preset/preset-nsi-josm.xml">
</pre>
</section>
<section>
<h3>OsmAnd style presets</h3>
Expand All @@ -405,6 +418,44 @@ <h3>OsmAnd style presets</h3>
-->
</section>

<section>
<h2>name-suggestion-index</h2>
<!--
<div class="issue" data-number="1">
How to encode Wiki infoboxes for tags in RDF/Turtle?
</div>
-->
<ul>
<li>
<a href="https://nsi.guide/">
https://nsi.guide/
</a>
</li>
<li>
<a href="https://github.com/osmlab/name-suggestion-index">
https://github.com/osmlab/name-suggestion-index
</a>
</li>
<li>
<a href="https://github.com/osmlab/name-suggestion-index/tree/main/schema">
https://github.com/osmlab/name-suggestion-index/tree/main/schema
</a>
</li>
<li>
<a href="https://github.com/osmlab/name-suggestion-index/tree/main/dist">
https://github.com/osmlab/name-suggestion-index/tree/main/dist
</a>
</li>
</ul>

<section>
<h3>nsi.json</h3>
<pre class="example" title="nsi.json (reference)" data-content-type="json" data-oninclude=""
data-include="reference/name-suggestion-index/nsi.json">
</pre>
</section>
</section>

<!--
<section>
<h2>@TODO better group here</h2>
Expand Down
15 changes: 15 additions & 0 deletions reference/name-suggestion-index/nsi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"_meta": {
"version": "6.0.20221205",
"generated": "2022-12-05T06:14:45.085Z",
"url": "https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/nsi.json",
"hash": "582e26798e1ac1c37efef8294a7520d2"
},
"nsi": {
"brands/amenity/animal_boarding": {
"properties": {"path": "brands/amenity/animal_boarding", "exclude": {"generic": ["^(animal boarding|kandang ayam)$"]}},
"items": [{"displayName": "Dogtopia", "id": "dogtopia-03770a", "locationSet": {"include": ["ca", "us"]}, "tags": {"amenity": "animal_boarding", "animal_boarding": "dog", "brand": "Dogtopia", "brand:wikidata": "Q112037444", "name": "Dogtopia"}}, {"displayName": "PetsHotel", "id": "petshotel-03770a", "locationSet": {"include": ["ca", "us"]}, "tags": {"amenity": "animal_boarding", "animal_boarding": "dog;cat", "brand": "PetsHotel", "brand:wikidata": "Q67141961", "name": "PetsHotel"}}, {"displayName": "PetSuites", "id": "petsuites-a2c409", "locationSet": {"include": ["us"]}, "tags": {"amenity": "animal_boarding", "animal_boarding": "dog;cat", "brand": "PetSuites", "brand:wikidata": "Q112037454", "name": "PetSuites"}}],
"templates": []
}
}
}
1 change: 1 addition & 0 deletions reference/preset/preset-josm-hello.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0">
<!-- Example from https://josm.openstreetmap.de/wiki/TaggingPresets -->
<item name="Oneway highway" type="way">
<label text="Inserting a unidirectional highway" />

Expand Down
19 changes: 19 additions & 0 deletions reference/preset/preset-nsi-josm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" author="Name Suggestion Index" shortdescription="Name Suggestion Index" description="Canonical common brand names for OpenStreetMap" link="https://github.com/github:osmlab/name-suggestion-index" version="6.0.20221205">
<!-- From https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.xml -->
<group name="Name Suggestion Index">
<group name="brands">
<group name="amenity">
<group name="animal_boarding">
<item name="Dogtopia" type="node,closedway,multipolygon">
<key key="amenity" value="animal_boarding" />
<key key="animal_boarding" value="dog" />
<key key="brand" value="Dogtopia" />
<key key="brand:wikidata" value="Q112037444" />
<key key="name" value="Dogtopia" />
</item>
</group>
</group>
</group>
</group>
</presets>

0 comments on commit e211e83

Please sign in to comment.