« Return to Thread: Properties with type:URL sometimes not recognized

Re: Properties with type:URL sometimes not recognized

by S Page-2 :: Rate this Message:

Reply to Author | View in Thread

Florian Konnertz wrote:

> I have trouble with the URL datatype.
> Ie Property:Website
> (in my case in german Attribute:Website )
> i define as [[has type::URL]]
>
> and a few others as Attribute:Forum and so on
>
> but the url is (in most cases) rendered as link to a new page in red
> with capital "Http:..."
> see http://florian-konnertz.de/wiki/Attribut:Website

Somehow SMW is not picking up the type for this Property, so when you
annotate other pages with [[Website::foo]], SMW thinks it's the default
kind of property, another wiki page.

I notice http://florian-konnertz.de/wiki/Attribut:Website doesn't show a
factbox for this annotation.  Compare e.g.
http://semanticweb.org/wiki/Property:Schema
Did you turn off factbox display in the Attribut (Property) namespace?
However, SMW is parsing your annotation, because it turns [[has
type::URL]] into a link to Datentyp:URL.  But somehow it's ignoring it.

* If you put other semantic annotations on an Attribute page, do they
make a factbox show up?


http://florian-konnertz.de/wiki/Spezial:Properties?limit=100
shows "Website" twice, which is really odd, and neither acknowledges
that it has the URL datatype.  Did you upgrade your wiki from SMW 0.7?
-- maybe that left some information around from the old namespaces.
It seems every property in your wiki is the default type ("Seite", or
Type:Page).

* Try giving another property a type, e.g. create Attribut:Test with
[[has type::string]] and see if that works.

You've also confused things by having a page
http://florian-konnertz.de/wiki/Website with the same [[has
type::URL]]annotation.  SMW doesn't complain if you use special
properties like Has_type on pages where they make no sense, but it's
confusing.

A few other things to try:

* Edit-then-save the pages in the chain, starting with Attribut:Website
and then your Xing page.  Or run the SMW_refreshData.php maintenance
script twice.
* Remove the [[has type::URL]] annotation on the Website page in the
main namespace just in case it's getting in the way.  (If that fixes the
problem then let me know, it indicates a bug in how SMW gets special
properties of properties.)
* Purge the Spezial:Properties page and see if it still shows two
Website properties and each still shows Type:Seite.

* It could be a subtle translation/alias issue where you need to use
[[Datentyp::URL]] or even [[Datentyp::Datentyp:URL]], but SMW seems to
be handling the canonical English names OK and I think SMW 1.0 fixed
most of those issues.


> I tried also
> [[has type::type:URL]]
> [[has Type::URL]]
> and few others
> as seen somewhere.

The format you have should be fine.  Again, in the page's display SMW
turns it into a link to [[Datentyp:URL]], showing that SMW recognized
the special property and supplied the Type/Datentyp namespace.  Yet SMW
isn't using this information about the property.

> My versions:
>
> http://florian-konnertz.de/wiki/Spezial:Version
> mw 1.11.0 and smw 1.0RC2
>
> any ideas?
> upgrade?

SMW 1.1.2 is better and the upgrade is pretty smooth, but I think what
you're trying worked OK in 1.0.

Good luck,
--
=S Page

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Semediawiki-user mailing list
Semediawiki-user@...
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

 « Return to Thread: Properties with type:URL sometimes not recognized

LightInTheBox - Buy quality products at wholesale price!