Main.HowToMakeQueries History

Hide minor edits - Show changes to output

February 05, 2008, at 09:05 AM by 129.20.167.23 -
Changed lines 34-35 from:
'''6''' Plot the selected portion of the results into the current Cytoscape Graph (see imaeg below). Only Resources are plotted (blank nodes and properties are filtered), this is becouse these queries don't allow to distingish the role of URIs. More complex ways to extract and visualize the content of ontologies in Cytoscape are povided in [[How to work with visual queries]]. The visualization of results in a Cytoscape Graph is subject to some settings and transformations as illustrated in [[How to browse ontologies]] and [[How to tune visualization options]].
to:
'''6''' Plot the selected portion of the results into the current Cytoscape Graph (see image below). Only Resources are plotted (blank nodes and properties are filtered), this is becouse these queries don't allow to distingish the role of URIs. More complex ways to extract and visualize the content of ontologies in Cytoscape are povided in [[How to work with visual queries]]. The visualization of results in a Cytoscape Graph is subject to some settings and transformations as illustrated in [[How to browse ontologies]] and [[How to tune visualization options]] '''(note that a yCircle layout is automatically performed when elements are plotted to the network this way)'''.
January 31, 2008, at 09:54 AM by 129.20.167.23 -
Changed lines 1-4 from:
!! Subheading

How to make queries
to:
!! How to make queries
January 31, 2008, at 07:15 AM by 129.20.167.23 -
Changed lines 1-2 from:
!!! How to make queries
to:
!! Subheading

How to make queries
Changed line 7 from:
!! Instructions
to:
!!! Instructions
Changed lines 20-21 from:
! RDQL queries
to:
!!!! RDQL queries
Changed lines 45-46 from:
! SPARQL queries
to:
!!!! SPARQL queries
Changed lines 51-52 from:
! String based queries
to:
!!!! String based queries
Changed lines 66-67 from:
! Class based queries
to:
!!!! Class based queries
Changed lines 74-75 from:
!!FAQ
to:
!!!FAQ
January 31, 2008, at 07:13 AM by 129.20.167.23 -
Added lines 1-2:
!!! How to make queries
Added line 5:
!! Instructions
Added lines 72-73:
!!FAQ
June 02, 2006, at 10:19 AM by 157.99.164.30 -
Changed lines 63-64 from:
http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/classQuery.jpg
to:
http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/classBasedQuery.jpg
June 02, 2006, at 10:18 AM by 157.99.164.30 -
Changed lines 21-22 from:
'''1''' Query modality selection. Choose here which query system you want to use (RDQL, SPARQL, Class based, String based). Default is RDQL, that is also shown in this example.
to:
'''1''' Query modality selection. Choose here which query system you want to use (RDQL, SPARQL, Class based, String based). Default is RDQL, that is also shown in this example. For details on RDQL syntax please consult [[http://www.w3.org/Submission/RDQL/ | specifications]] and [[http://jena.sourceforge.net/tutorial/RDQL/ | a tutorial]]. '''Note that RDQL is obsoleted by SPARQL'''.
Changed lines 40-42 from:


to:
! SPARQL queries

http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/sparqlQuery.jpg

SPARQL queries are expressed in the SPARQL query language. Only queries that returns variable bindings are accepted here. For more information on SPARQL consult [[http://www.w3.org/TR/rdf-sparql-query/ | SAPRQL specifications ]] or [[http://www-128.ibm.com/developerworks/library/j-sparql/ | a tutorial]].

! String based queries

http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/stringQuery.jpg

String based queries requires you to specify a string, and wether the system should loof for an exact of partial match (checking "Approx" corresponds to partial matches). Partial mathes looks for words that "contains" the string provided by the user.
The system will look at URI and other properties of URI such as rdfs:label.

For istance if the query string is "P53" and the ontology contains an assertion like:

http://www.example.com/proteins.owl#xxxx rdfs:label "P53"

The system will return:

http://www.example.com/proteins.owl#xxxx

! Class based queries

http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/classQuery.jpg

Shows a list of all classes (named classes) known by the system. The query consists in teh selection of one class, and the results is the list of all instances of this class.

Note that the behaviour of this query, and expecially the ability to list classes, may depend on the reasoning systm used (more in [[How to use inference]]).
June 02, 2006, at 10:02 AM by 157.99.164.30 -
Added lines 1-43:
RDFScape provides different ways to query the content of ontologies. The ones presented here do not require, in principle, Cytsoscape. Other interactive and visual ways of exploring ontologies are presented in [[How to browse ontologies]] , [[How to define with visual queries ]] and [[How to work with visual queries]].

Four modalities are supported:

* RDQL queries

* SPARQL queries

* String based queries

* Class based queries

We will show in detail the whole query process only for RDQL queries, as in the other cases this remain constant, while the way the query is formulated is different

! RDQL queries

http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/queryMain.jpg

'''0''' Select the "Browser" panel. Query functinalities are presenetd here becouse they are the staring point to browse ontologies (see [[How to browse ontologies]]).

'''1''' Query modality selection. Choose here which query system you want to use (RDQL, SPARQL, Class based, String based). Default is RDQL, that is also shown in this example.

'''2''' Enter your query. The text provided here is a template, defined based on available namespaces. You have to edit this text and complete your query. Note that if default namespace are present, you will also need to update the namespace block. ''You need to select "Clear Query" to update the namespace block to include the actual list of namespaces present in the ontologies''.

'''3''' Perfom the query. In case of sytntax errors, an error message will report them.

'''4''' After a query a list of the results will be presented here (see image below). Colors and prefixes of namespaces are syncrhonized with the settings shown in [[Selecting namespaces]] (except that all namespaces are always active here).

'''5''' If no graph in Cytoscape is available, this creates a new graph. While it is possible to add elements from the ontology to any graph in Cyotoscape, integration of ontologies and other biological graphs is more complex than just ading nodes to the same "graph". Consult [[Linking graphs in Cytoscape and ontologies]] to understeand how to realize this integration.

'''6''' Plot the selected portion of the results into the current Cytoscape Graph (see imaeg below). Only Resources are plotted (blank nodes and properties are filtered), this is becouse these queries don't allow to distingish the role of URIs. More complex ways to extract and visualize the content of ontologies in Cytoscape are povided in [[How to work with visual queries]]. The visualization of results in a Cytoscape Graph is subject to some settings and transformations as illustrated in [[How to browse ontologies]] and [[How to tune visualization options]].

'''7''' Reset the query (elements visualized in Cytoscape are not affected).

'''Note that all the queries are relative to ontologies enriched by customizable inferential process''' (see [[How to use inference]]).

http://www.sgtp.net/AndreaSplendiani/ext/rdfscape/queryAndVisualize.jpg