|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Properties with type:URL sometimes not recognizedhi all
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 I tried also [[has type::type:URL]] [[has Type::URL]] and few others as seen somewhere. My versions: http://florian-konnertz.de/wiki/Spezial:Version mw 1.11.0 and smw 1.0RC2 any ideas? upgrade? thx florian -- http://florian-konnertz.de https://www.xing.com/profile/Florian_Konnertz ------------------------------------------------------------------------- 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 |
|
|
Re: Properties with type:URL sometimes not recognizedFlorian 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 |
|
|
Re: Properties with type:URL sometimes not recognizedHi S Page
i tried all your suggestions, no success... ok first to mention i upgraded to 1.1.2 without problems (i want to import an ontology and try SPARQL asap). I tried with string and temperature data types, all red links point to new page creation edit forms. i tried with[[Datentyp::URL]] or even [[Datentyp::Datentyp:URL]] New information, which came to my mind lately: If I am not completely wrong it was some weeks ago solved when i outcommented my $smwgNamespacesWithSemanticLinks = array(NS_MAIN=>true,NS_BLOG=>true); in LocalSettings.php Now did that again but no effect, also tried to leave MAIN namespace... but i guess this setting resp. its default, stayed the same from 1.0RC to now. I keep on trying... :) if you have further ideas, let me know!! :) Florian S Page wrote: > 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 -- http://florian-konnertz.de https://www.xing.com/profile/Florian_Konnertz ------------------------------------------------------------------------- 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 |
|
|
Re: Properties with type:URL sometimes not recognizedhi
just an update of the issue... Tried again SMW_refreshData.php re-entered [[ħas type::URL]] on attribute page -> now the http links are rendered correctly. but: * all attribute pages are empty now - the type entries and the free text entries. * the pages using the attribute are not shown. BTW these are my SMW-related settings in LocalSettings.php: $smwgNamespaceIndex = 102; include_once("extensions/SemanticMediaWiki/includes/SMW_Settings.php"); enableSemantics("florian-konnertz.de"); // needed with SMW 1.1.2 ?? //$smwgNamespacesWithSemanticLinks = array(NS_MAIN=>true,NS_BLOG=>true); //$smwgNamespacesWithSemanticLinks = array(NS_MAIN=>true); $smwgQEqualitySupport = SMW_EQ_FULL; // always interpret redirects as equality in queries $smwgQComparators = '<|>|!|~'; // enable the patte dear SMW cracks, further hints are appreciated !! :) regards, florian S Page wrote: > 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 -- http://florian-konnertz.de https://www.xing.com/profile/Florian_Konnertz ------------------------------------------------------------------------- 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 |
| Free Forum Powered by Nabble | Forum Help |