RDF has two ways to handle this.  I don't think SMW supports either in a direct 
way.
1. Blank nodes.  Instead of a property having a value of type integer, it has a 
value
   of a composite type that has an integer, date, etc.  Since it is a "blank 
node" you
   don't need to create a unique URI for it (or its own page in SMW).  "Blank 
nodes" are
   used in RDF all the time, for example as the nodes in a list, or to mention 
"the person
   that has email address [EMAIL PROTECTED]" without needing to give that 
object its own
   unique identifier, and also to make "composite types" like the date/integer 
you mention.
2. Reification.  If your statement is "San Francisco has population 739426", 
then you make
   a separate object of type Statement where the subject is "San Francisco", 
the predicate is
   "has population" and the object is "739426".  Then you can extend this to 
say "this statement"
   is true on the date 2005.  (Since the Statement object is usually a blank 
node, it kind of
   amounts to the same as option 1.)

The closest thing I see in in SWM is Type:Geographic coordinate which is 
basically a blank node
with a latitude and longitude property.  Are there any plans in SMW to support 
blank nodes, custom
composite types, or reification?

- Jeff

Harold Solbrig wrote:
 > Dan,
 >
 >
 >
 > Why just integers?  It would seem like it would be useful to be able to add 
 > provenance (who, when, where…) 
information to any property – not just integers.  President:=Johnson  - 1965  
or hasChild :: Sarah – 2003 
definedIn:=http://w3.org/sample/prelimVersion 2007-08-07
 >
 >
 >
 > Harold Solbrig
 >
 >
 >
 > ------------------------------------------------------------------------
 >
 > *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On 
Behalf Of *Dan Thomas
 > *Sent:* Saturday, September 08, 2007 7:24 AM
 > *To:* Semediawiki-devel@lists.sourceforge.net
 > *Subject:* [SMW-devel] dated integer type
 >
 >
 >
 > I have run across a concept called 'dated integer' that I propose become a 
 > native SMW data type.  As the name 
implies, one can associate a number with a year:
 >
 > population:=9,999 - 2005 or
 > homeruns:=756 - 2007-08-07.
 >
 > Do others think this would be useful?
 >
 > --
 > --
 > Dan Thomas



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to