YOU CAN EDIT THIS PAGE! Just click any blue "Edit" link and start writing!

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)


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]]

:{{PAGENAME}} dc:spatial place:{{PAGENAME}}

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

:{{{1}}} dc:spatial place:{{{1}}} .

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

# Generated by N3Serializer.php from RDF RAP.

@prefix : <> .
@prefix dc: <> .
@prefix ns0: <

#> .
@prefix place: <> .
@prefix dcterms: <> .

: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. -- 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.

@prefix ns0: <> .
@prefix dc: <> .
@prefix ns1: <> .
@prefix : <> .
@prefix place: <> .
@prefix dcterms: <> .

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)