Help Wikitravel grow by contributing to an article! Learn how.

Wikitravel talk:15 November 2005

From Wikitravel
Jump to: navigation, search

Great Concept[edit]

Hi Evan, this seems to be a graet and powerfull concept. It looks much more appropriate for our needs then categories. But I'm sure it only will be accepted by authors if the complete Turtle syntax can be hidden in templates that are easy to use. It took me some hours to get an overview about RDF, Turtle and all that stuff. -- Hansm 15:54, 17 Nov 2005 (EST)

Bug[edit]

As far as I have understood the syntax, there is still a bug in your implementation. On de: I have created a template [[Template:TurtleTest]]

<rdf>
:{{PAGENAME}} dc:spatial place:{{PAGENAME}}

# place:{{PAGENAME}} dcterms:isPartOf place:{{{1}}} .
place:{{PAGENAME}} dcterms:isPartOf place:Region .

:{{{1}}} dc:spatial place:{{{1}}} .
</rdf>

and added a line like {{TurtleTest|Nirvana}} to the article of Mali. The RDF response was:

# Generated by N3Serializer.php from RDF RAP.
# http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html

@prefix : <http://wikitravel.org/de/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ns0: <http://wikitravel.org/place/de/Mali

#> .
@prefix place: <http://wikitravel.org/place/de/> .
@prefix dcterms: <http://purl.org/dc/terms/> .


:Nirvana dc:spatial place:Nirvana .
place:Mali dcterms:isPartOf place:Region .
:Mali dc:spatial ns0: .

Instead of place:Mali , a wired namespace ns0: shows up. That's wrong, isn't it.

-- Hansm 15:54, 17 Nov 2005 (EST)

That does seem kind of funny. Check out Template:IsIn. It doesn't seem to have the same problem. --Evan 16:01, 17 Nov 2005 (EST)
Sorry, that was my mistake. There was a fullstop missing in the first line of my template. -- 84.160.32.121 16:27, 17 Nov 2005 (EST)
Haha, but I had copied it from your introduction ;-) -- Hansm

Bug 2 (maybe)[edit]

I have added a line like {{IsIn|Berlin}} to the de: article of de:Berlin/Mitte. The RDF response is:

# Generated by N3Serializer.php from RDF RAP.
# http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/index.html

@prefix ns0: <http://wikitravel.org/de/Berlin/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ns1: <http://wikitravel.org/place/de/Berlin/> .
@prefix : <http://wikitravel.org/de/> .
@prefix place: <http://wikitravel.org/place/de/> .
@prefix dcterms: <http://purl.org/dc/terms/> .


ns1:Mitte dcterms:isPartOf place:Berlin .
:Berlin dc:spatial place:Berlin .
ns0:Mitte dc:spatial ns1:Mitte .

Now, how about this namespaces ns0 and ns1? This might not be a real bug, but it looks strange. I had expected that:

place:Berlin/Mitte dcterms:isPartOf place:Berlin .
:Berlin dc:spatial place:Berlin .
:Berlin/Mitte dc:spatial place:Berlin/Mitte .

-- Hansm 17:32, 17 Nov 2005 (EST)

Bug 3[edit]

Again on de:, I have added the IsIn template in nowiki tags to de:Niger. But for some reason, the RDF info is found anyways. -- Hansm 17:32, 17 Nov 2005 (EST) You also can see this effect when retrieving the RDF info for Wikitravel:Geocoding -- Hansm 20:34, 17 Nov 2005 (EST)

Variants

Actions

Destination Docents

In other languages