Discovery

Building query

To build a query, user successively add unit blocks grouped into five categories :

Each unit block could increment the query at different location called focus. The query contains a current focus which is moved each time a unit block is added. With some exceptions, the current focus is positioned on the last increment.

example

query.something() 
        .isA("peak_class:Compound")
           .isSubjectOf("peak_prop:InChIKey")

This request can be translated as “Get something of type compound which are subject of the InChIKey predicate.”

Moving the focus

types

if there is no ambiguity, string conversion is automatic.

isObjectOf("<http://something/test>") isObjectOf(URI("<http://something/test>")) equivalent to .prefix("http://something/","s").isObjectOf("s:test") equivalent to .prefix("http://something/","s").isObjectOf(URI("s:test"))

Using named block

Special unit block “Something”

A query always start this unit block.

Query configuration

Linking RDF block to browse the semantic graph

focus insensitive

Values assignment block

Filter assignment block

Creation/Transformation assignment block