2 Replies Latest reply on Mar 24, 2008 11:12 PM by Mannamal-Oracle

    a query question

    609674
      Hi all,

      for now ,I have two models, one is model1, the other is model2.

      In model1, there are the following triples:
      <uri://mytest.org/student#student:1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#> <uri://mytest.org/elements#student>
      <uri://mytest.org/student#student:1> <uri://mytest.org/elements#hasName> "John"
      <uri://mytest.org/student#student:1> <uri://mytest.org/elements#hasAge> "15"

      In model2, there are the following triples:
      <uri://mytest.org/student#student:1> <uri://mytest.org/elements#hasTitle> "monitor"

      So, I wanted to get all informations of student, as the following statement.but I got nothing.
      select name,age,title from
      TABLE (SEM_MATCH( '(?student rdf:type :stuent)(?student :hasName ?name)
           (?student :hasAge ?age)(?student :hasTitle ?title)
      ',
      SEM_Models('model1','model2'),null,
      SEM_Aliases(SEM_Alias('rdf','http://www.w3.org/1999/02/22-rdf-syntax-ns#'),
      SEM_Alias('', 'uri://mytest.org/student#'),
           SEM_Alias('', 'uri://mytest.org/elements#')
      ),
      null)) t

      Steven
      Mar,19 2008