Skip to content

Instantly share code, notes, and snippets.

// Notice the static imports, these makes the syntax below so compact
// (and the IDE will auto-define this section)
import ondex.fluent.EntityFilter.FluentGraphWrapper
import static ondex.fluent.EntityFilter.byType;
import static ondex.fluent.EntityFilter.byDoubleAttribute;
import static ondex.fluent.ConceptFilter.byAccession;
import static ondex.fluent.Filter.byRegEx;
import static ondex.fluent.EntityComparator;
import static ondex.fluent.ConceptMapper.fromRelations;
import static ondex.fluent.RelationMapper.toConcepts;
MATCH (pway:Path{prefName:"chlorophyll a biosynthesis I"}) - [po:part_of] - (comp)
RETURN *
LIMIT 20
PREFIX bk: <http://www.ondex.org/bioknet/terms/>
PREFIX bkr: <http://www.ondex.org/bioknet/resources/>
PREFIX bka: <http://www.ondex.org/bioknet/terms/attributes/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX agri: <http://agrischemas.org/>
PREFIX bioschema: <http://bioschemas.org/>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "http://www.your-company-site.com",
"logo": "http://www.example.com/logo.png",
"contactPoint": [{
"@type": "ContactPoint",
"telephone": "+1-401-555-1212",
"contactType": "customer service"
# Composers of Italian movies, who was born in places having more than 100k inhabitants
# Usage: paste it into http://it.dbpedia.org/sparql and then hit 'Run Query'
#
PREFIX dbp-onto: <http://dbpedia.org/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?composerName ?birthplaceName
WHERE
{
# Movies from italy and their music composers