[Monetdb-developers] [Monetdb-checkins] MonetDB5/src/modules/mal rdf.mx, , 1.2, 1.3

Lefteris lsidir at gmail.com
Thu Apr 17 18:25:46 CEST 2008


On Thu, Apr 17, 2008 at 5:24 PM, Marco Antonelli
<marcoantonelli at users.sourceforge.net> wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/modules/mal
>  In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26814/src/modules/mal
>
>  Modified Files:
>         rdf.mx
>  Log Message:
>  Added a T bat that stores the types of the RDF objects (IRI, integer, double, plain literal...). It still has to be sorted together with the S, P, O bats in all their possible combinations
>
>  U rdf.mx
>  Index: rdf.mx
>  ===================================================================
>  RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/rdf.mx,v
>  retrieving revision 1.2
>  retrieving revision 1.3
>  diff -u -d -r1.2 -r1.3
>  --- rdf.mx      1 Apr 2008 14:48:08 -0000       1.2
>  +++ rdf.mx      17 Apr 2008 15:24:15 -0000      1.3

>  +static rdf_type RDFparseXsdDataType(char *uri)
>  +{
>  +       rdf_type ret;
>  +       if (uri == NULL)
>  +               ret = PLAIN;
>  +       else if (       strcmp(uri, "http://www.w3.org/2001/XMLSchema#int") ||
>  +                               strcmp(uri, "http://www.w3.org/2001/XMLSchema#integer"))
>  +               ret = INTEGER;
>  +       else if (strcmp(uri, "http://www.w3.org/2001/XMLSchema#decimal"))
>  +               ret = DECIMAL;
>  +       else if (strcmp(uri, "http://www.w3.org/2001/XMLSchema#double"))
>  +               ret = DOUBLE;
>  +       else if (strcmp(uri, "http://www.w3.org/2001/XMLSchema#boolean"))
>  +               ret = BOOLEAN;
>  +       else if (strcmp(uri, "http://www.w3.org/2001/XMLSchema#float"))
>  +               ret = FLOAT;
>  +       else if (strcmp(uri, "http://www.w3.org/2001/XMLSchema#string"))
>  +               ret = STRING;
>  +       else if (strcmp(uri, "http://www.w3.org/2001/XMLSchema#dateTime"))
>  +               ret = DATETIME;
>  +       else
>  +               ret = UNKNOWN;
>  +
>  +       raptor_free_memory(uri);
>  +       return ret;
>  +}

I am not sure if this is the correct way to identify the type, what
happens if 2001 changes to 1998 or 2003? or if they use prefix instead
of the uri? Does raptor gives you always the full uri back? it seems
way to much hard wired.


>
>
>  -------------------------------------------------------------------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  Don't miss this year's exciting event. There's still time to save $100.
>  Use priority code J8TL2D2.
>  http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  Monetdb-checkins mailing list
>  Monetdb-checkins at lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
>




More information about the developers-list mailing list