All,

I see some odd behaviour when not specifying any graph names with DESCRIBE 
queries. In this situation, the documented behaviour is that all graphs 
should be queried. Thus, I would expect the results returned from a query of 
all graphs to always be a superset of a resultset when a default graph is 
specified. 

However, it doesn't seem that this is happening. Take for example this query:

DESCRIBE <http://www.wizardis.com.au/2005/12/MAVIS#TitleWorkkey41415>

it can be run at http://msoneutv.computas.no:8890/sparql

In the above case only the rdf:types of the query is returned, but there is 
much more in the database, as is made clear with the following query:

DESCRIBE <http://www.wizardis.com.au/2005/12/MAVIS#TitleWorkkey41415> FROM 
<http://msone.computas.no/graphs/instance/nfi>

The explain result for the former query is:

SQL> explain('sparql DESCRIBE 
<http://www.wizardis.com.au/2005/12/MAVIS#TitleWorkkey41415>');
REPORT
VARCHAR
_______________________________________________________________________________

{
Fork
{

Precode:
      0: $26 "callret" := Call vector ()
      5: $27 "callret" := Call DB.DBA.RDF_MAKE_IID_OF_QNAME (<constant 
(http://www.wizardis.com.au/2005/12/MAVIS#TitleWorkkey41415)>)
      12: $28 "callret" := Call vector ($27 "callret")
      17: BReturn 0
Subquery
{
from DB.DBA.RDF_QUAD by RDF_QUAD_OGPS    4.3e+04 rows
Key RDF_QUAD_OGPS  ASC ()


Current of: <$33 "<DB.DBA.RDF_QUAD >" spec 5>
Subquery Select(TOP <constant (1)>) ( <none> , <$33 "<DB.DBA.RDF_QUAD >" spec 
5>)
}


After code:
      0: if ($43 "user_aggr_notfirst" 1(=) <constant (1)>) then 15 else 4 unkn 
4
      4: $43 "user_aggr_notfirst" :=  := artm <constant (1)>
      8: $45 "user_aggr_ret" := Call DB.DBA.SPARQL_DESC_AGG_INIT 
($44 "user_aggr_env")
      15: $45 "user_aggr_ret" := Call DB.DBA.SPARQL_DESC_AGG_ACC 
($44 "user_aggr_env", $26 "callret")
      22: BReturn 0
}

After code:
      0: $46 "callret" := Call DB.DBA.SPARQL_DESC_AGG_FIN 
($44 "user_aggr_env")
      7: $47 "callret" := Call DB.DBA.SPARQL_DESC_DICT ($46 "callret", 
$28 "callret", <constant (0)>, <constant DB_NULL>, <constant (0)>, 
$26 "callret")
      14: $48 "callret-0" := Call DB.DBA.RDF_FORMAT_TRIPLE_DICT_AS_TTL 
($47 "callret")
      21: BReturn 0
Select (TOP <constant (1)>) ($48 "callret-0")
}

35 Rows. -- 2 msec.


Kind regards 

Kjetil Kjernsmo
-- 
Senior Knowledge Engineer
Mobile: +47 986 48 234
Email: kjetil.kjern...@computas.com   
Web: http://www.computas.com/

|  SHARE YOUR KNOWLEDGE  |

Computas AS  PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 
1001


Reply via email to