On Sunday 12 November 2006 03:16, S Page wrote:
> Attribute:email used to be of Type:String even though SMW 0.5 implements
> Type:email that adds the mailto: link in HTML.

Sorry, but Type:Email is not stable yet. It prints an email hyperlinked when 
used in an article, but the problem is that this does not work when it prints 
results in queries. If used in queries, you will see [mailto:email email] 
where you would expect the link. The problem is that you HTML is used in 
queries and wikitext elsewhere. I will look at it (feel free to file a bug).

Currently, a template like the email template on ontoworld.org seems to be the 
best solution.

>
> So I switched Attribute:email to be Type:Email.  I didn't edit every
> page with an email, but queries don't seem to mind about the datatype of
> an attribute.

They do! But the types are sufficiently compatible.

>
> So Template:Mailbox doesn't need to output a mailto link, so I
> simplified it.
>
> Likewise Template:Email doesn't need to output a mailto link.
> [[email:[EMAIL PROTECTED] now generates the same HTML as
> {{email|[EMAIL PROTECTED]  So I marked this template as
> somewhat obsolete.

Sorry, but you will have to undo this for said reasons (if you want to see the 
problem in action, you can re-safe any article with an email and check how it 
looks in a query result). 

I think another reason for use to have two email attibutes was that one uses 
FOAF mbox; with several effects:
* Completely different RDF export: it is an ObjectProperty, not a 
DatatypeProperty of type string.
* FOAF-Semantics: foaf:mbox implies that you use it on a foaf:Agent only. So 
it does not provide a correct way for giving conferences and other non-agents 
an email.

>
> However, http://ontoworld.org/wiki/Help:Semantic_templates uses
> Template:Email as a detailed example.  Maybe someone can find a more
> appropriate semantic template for the help, perhaps Template:Mailbox

I would keep Email for now. It is a good simple example of a template, even if 
we do not use it in the future. 

-- Markus

>
> --
> =S
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Semediawiki-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user

-- 
Markus Krötzsch
Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe
[EMAIL PROTECTED]        phone +49 (0)721 608 7362
www.aifb.uni-karlsruhe.de/WBS/     fax +49 (0)721 693  717

Attachment: pgpDzMAanTYOm.pgp
Description: PGP signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Semediawiki-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user

Reply via email to