Changeset 34811 in osm for applications/editors
- Timestamp:
- 2019-01-08T22:37:06+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/tag2link
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tag2link/resources/tag2link_sources.xml
r34810 r34811 54 54 </rule> 55 55 <rule> 56 <condition k=" wikidata" />56 <condition k="(operator:|network:|brand:|architect:|artist:|subject:|name:etymology:)?wikidata" /> 57 57 <link name="View Wikidata page" href="https://www.wikidata.org/wiki/%v%" /> 58 58 </rule> -
applications/editors/josm/plugins/tag2link/test/unit/org/openstreetmap/josm/plugins/tag2link/Tag2LinkRuleCheckerTest.java
r31910 r34811 13 13 14 14 @BeforeClass 15 public static void load() throws Exception{15 public static void load() { 16 16 Tag2LinkRuleChecker.init(); 17 17 } 18 18 19 19 @Test 20 public void testImageCommons() throws Exception{20 public void testImageCommons() { 21 21 final Collection<Link> links = Tag2LinkRuleChecker.getLinks(new Tag("image", "File:Witten Brücke Gasstraße.jpg")); 22 22 assertEquals(1, links.size()); 23 23 assertEquals("https://commons.wikimedia.org/wiki/File%3AWitten_Br%C3%BCcke_Gasstra%C3%9Fe.jpg", links.iterator().next().url); 24 24 } 25 26 @Test 27 public void testBrandWikidata() { 28 final Collection<Link> links = Tag2LinkRuleChecker.getLinks(new Tag("brand:wikidata", "Q259340")); 29 assertEquals(1, links.size()); 30 assertEquals("https://www.wikidata.org/wiki/Q259340", links.iterator().next().url); 31 } 25 32 }
Note:
See TracChangeset
for help on using the changeset viewer.