Frederic,

Please read the rest of my message which directly addresses the problem.

>     You keep changing the URIs : sometimes they have "com.telemis.core"
>     and sometimes just "com.core".

Also, please check your data. It is not valid - there is junk on the end of the file.

When fixed, and the query fixed, you will get results with TDB or in-memory.

        Andy

On 24/06/14 11:35, Frederic Toublanc wrote:
Here the full file exported.


2014-06-24 12:13 GMT+02:00 Andy Seaborne <a...@apache.org
<mailto:a...@apache.org>>:

    Your data is unreadable - please check below and see what I see:


     > Here the extracted model (TURTLE) :
     >
     >
    
*<http://com.core.aim.base/__ImageAnnotation/5bb1f719-30f2-__445c-89f7-498600eca6ed-msr
    
<http://com.core.aim.base/ImageAnnotation/5bb1f719-30f2-445c-89f7-498600eca6ed-msr>
     >
    
<http://com.core.aim.base/__ImageAnnotation/5bb1f719-30f2-__445c-89f7-498600eca6ed-msr
    
<http://com.core.aim.base/ImageAnnotation/5bb1f719-30f2-445c-89f7-498600eca6ed-msr>>>*
     > *        a       <http://com.core.aim.base/__ImageAnnotation
    <http://com.core.aim.base/ImageAnnotation>
     > <http://com.core.aim.base/__ImageAnnotation
    <http://com.core.aim.base/ImageAnnotation>>> ;*

    That is not legal.

    Please send readable, legal data.

    You keep changing the URIs : sometimes they have "com.telemis.core"
    and sometimes just "com.core".

    If the URIs align, you should get results.

             Andy


    On 24/06/14 09:48, Frederic Toublanc wrote:

        I tried this :

                                                          String uri =
        1.2.392.200036.9107.500.305.__14321.20070523.84015.1014321;
        String query = "PREFIX base:<http://com.core.aim.__base/
        <http://com.core.aim.base/>> " +



           "PREFIX rdfs:<http://www.w3.org/2000/__01/rdf-schema#
        <http://www.w3.org/2000/01/rdf-schema#>> " +
           "PREFIX image:<http://com.core.aim.__base/Image/
        <http://com.core.aim.base/Image/>> " +
        "SELECT * {" +
           " ?x a base:ImageAnnotation ;" +
        " base:images ?seq ." +
           " ?seq rdfs:member image:" + uid  +
        " }";

        and i have no result.

        Then i tried this :

                                                       String query =
        "PREFIX base:<
        http://com.core.aim.base/> " +
           "PREFIX rdfs:<http://www.w3.org/2000/__01/rdf-schema#
        <http://www.w3.org/2000/01/rdf-schema#>> " +
           "PREFIX image:<http://com.core.aim.__base/Image/
        <http://com.core.aim.base/Image/>> " +
        "SELECT * {" +
           " ?x a base:ImageAnnotation ;" +
        " base:images ?seq ." +
           " }";

        And i have the following result :

        
------------------------------__------------------------------__------------------------------__------------------------------__--------------------------
        | x

          | seq  |
        
==============================__==============================__==============================__==============================__==========================
        | <
        
http://com.core.aim.base/__ImageAnnotation/5bb1f719-30f2-__445c-89f7-498600eca6ed-msr
        
<http://com.core.aim.base/ImageAnnotation/5bb1f719-30f2-445c-89f7-498600eca6ed-msr>>
        | _:b0 |
        
------------------------------__------------------------------__------------------------------__------------------------------__--------------------------

        It seems that the rdfs:member doesn't work :(


        Here the extracted model (TURTLE) :

        
*<http://com.core.aim.base/__ImageAnnotation/5bb1f719-30f2-__445c-89f7-498600eca6ed-msr
        
<http://com.core.aim.base/ImageAnnotation/5bb1f719-30f2-445c-89f7-498600eca6ed-msr>
        
<http://com.core.aim.base/__ImageAnnotation/5bb1f719-30f2-__445c-89f7-498600eca6ed-msr
        
<http://com.core.aim.base/ImageAnnotation/5bb1f719-30f2-445c-89f7-498600eca6ed-msr>>>*
        *        a       <http://com.core.aim.base/__ImageAnnotation
        <http://com.core.aim.base/ImageAnnotation>
        <http://com.core.aim.base/__ImageAnnotation
        <http://com.core.aim.base/ImageAnnotation>>> ;*
        *        <http://com.core.aim.base/__images
        <http://com.core.aim.base/images>
        <http://com.core.aim.base/__images
        <http://com.core.aim.base/images>>>*
        *                [ a
        <http://www.w3.org/1999/02/22-__rdf-syntax-ns#Seq
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq>
        <http://www.w3.org/1999/02/22-__rdf-syntax-ns#Seq
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq>>> ;*
        *
          <http://www.w3.org/1999/02/22-__rdf-syntax-ns#_1
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1>
        <http://www.w3.org/1999/02/22-__rdf-syntax-ns#_1
        <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1>>>*
        *
        
<http://com.core.aim.base/__Image/1.2.392.200036.9107.500.__305.14321.20070523.84015.__1014321
        
<http://com.core.aim.base/Image/1.2.392.200036.9107.500.305.14321.20070523.84015.1014321>
        
<http://com.core.aim.base/__Image/1.2.392.200036.9107.500.__305.14321.20070523.84015.__1014321
        
<http://com.core.aim.base/Image/1.2.392.200036.9107.500.305.14321.20070523.84015.1014321>>>*
        *                ] ;*
        *        <http://com.core.aim.base/__xsiType
        <http://com.core.aim.base/xsiType>
        <http://com.core.aim.base/__xsiType
        <http://com.core.aim.base/xsiType>>>*
        *
        "ImageAnnotation"^^<http://__www.w3.org/2001/XMLSchema#__string
        <http://www.w3.org/2001/XMLSchema#string>
        <http://www.w3.org/2001/__XMLSchema#string
        <http://www.w3.org/2001/XMLSchema#string>>> .*




Reply via email to