Changes between Initial Version and Version 1 of minutes_03-04-08


Ignore:
Timestamp:
03/19/08 10:32:24 (11 years ago)
Author:
onardmejino
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • minutes_03-04-08

    v1 v1  
     1= Meeting minutes from 03/04/2008 = 
     2 
     3=== Attendance: ===  
     4 
     5 * Jim Brinkley, Dan Cook, Onard Mejino, Todd Detwiler, Marianne Shaw, Jiun-Hung Chen, Gary Yngve 
     6 
     7=== Summary === 
     8 
     9Marianne's report: sample ds-config.ttl file  
     10 
     11**** Support has been added for a Data Source Configuration RDF file, 
     12ds-config.ttl. This file can be used to associated a URL (that can be 
     13used in queries) with a Jena AssemberModel. 
     14 
     15Without this configuration file, Data Sources that were stored in a DB 
     16had to be specified programmatically; they could not simply be 
     17specified in a query. This restricted our ability to specify Data 
     18Sources in subqueries and recursive queries. 
     19 
     20Using this config file, we can now execute recursive queries over the 
     21FMA stored in postgres DB. 
     22 
     23An example query that returns the transitive closure of the Liver over 
     24the part relation is: 
     25 
     26PREFIX dl: <http://bioontology.org/projects/ontologies/fma/fmaOwlDlComponent_1_4_0#>  
     27CONSTRUCT { ?x ?y ?z .}  
     28FROM NAMED <liver> [ 
     29        CONSTRUCT {dl:Liver dl:part ?obj} 
     30        FROM <http://bioontology.org/projects/ontologies/fma/fmaOwlFullComponent_1_4_0> 
     31        WHERE {dl:Liver dl:part ?obj .} 
     32 
     33        UNION 
     34 
     35        CONSTRUCT {?a ?b ?c . ?c dl:part ?d} 
     36         FROM NAMED <liver> 
     37        FROM NAMED <http://bioontology.org/projects/ontologies/fma/fmaOwlFullComponent_1_4_0> 
     38         WHERE { 
     39           GRAPH <liver> { ?a ?b ?c . } . 
     40          GRAPH <http://bioontology.org/projects/ontologies/fma/fmaOwlFullComponent_1_4_0> { ?c dl:part ?d . } . 
     41         } 
     42] 
     43WHERE { GRAPH <liver> {?x ?y ?z .} } 
     44 
     45 
     46 
     47 
     48**** Support for Skolem Functions has been added for CONSTRUCT 
     49queries; SELECT queries require a little more work. Skolem Functions 
     50can take variables or expressions (not aggregates) as arguments. 
     51 
     52The format for specifying a Skolem Function is: 
     53       [[<URL>(param1, ...)]].  
     54The result of processing a SkolemFunction is a URL with 
     55parameters. For example, 
     56       [[ <http://localhost/ontologies/f>("bob") ]] 
     57would result in a URL 
     58       <http://localhost/ontologies/f?param1=%22bob%22> 
     59 
     60 
     61A simple Skolem Function query looks like: 
     62 
     63PREFIX  xsd:    <http://www.w3.org/2001/XMLSchema#> 
     64PREFIX  dc:     <http://purl.org/dc/elements/1.1/> 
     65PREFIX  ac:     <http://purl.org/ac/elements/1.1/> 
     66PREFIX  bobo:   <http://localhost/bobo/> 
     67PREFIX  :       <.> 
     68 
     69CONSTRUCT { [[bobo:f(?y)]] ac:booktitle [[bobo:g(?z, 5+2)]] } 
     70FROM <skolem.ttl> 
     71WHERE { 
     72       ?x ?y ?z . 
     73} 
     74 
     75