Triply Academy

academy
Created on Sep 12th, 2018
Members

construct-describe-1-custom

Similar to this construct query, but showing the flexibility of returning some results that are deeper in the graph.

This is the flexibility, and therefore predictability, that construct query provide. This makes them a good replacement for the less predictable describe queries.

Created 7 months ago, 1 version

construct-describe-1-outlinks

This construct query is similar to this describe query, but has predictable results.

Created 7 months ago, 1 version

describe-2

Created 7 months ago, 1 version

describe-1

Created 7 months ago, 1 version

geo-within-query

Created a year ago, 5 versions

aggregate-evidence

Created a year ago, 1 version

nested-aggregate

Aggregate functions can be nested, e.g., to calculate the maximum count.

Created a year ago, 1 version

Hiding grouping variables

Purpose

For grouping it is necessary to include the grouped by variables in the projection. If such a variable is not wanted in the outer projection, this can be solved with a sub-select. The only purpose of the outer select is to curate the variables that are supposed to be returned.

Created a year ago, 2 versions

HTML templating

Use {{variable}} notation in order to include string representations of bindings into HTML strings. This allows human-readable HTML content to be generated from within a SPARQL query. (This is a Triple-specific feature.)

Notice that the HTML string is itself semantically described as a literal with datatype IRI rdf:HTML.

You can press the "Gallery" result set view in order to display a gallery view of the returned HTML widgets. The gallery widget requires that the HTML strings are bound to variable ?widget.

Created a year ago, 2 versions

1-7

Binding a variable

The bind keyword allows variables to be introduced that do not appear in a graph pattern.

Created a year ago, 1 version

html-literal

Created a year ago, 2 versions

iri-abbreviations

Created a year ago, 2 versions

group-pattern-5-plus-2

Created a year ago, 2 versions

group-pattern-5

Created a year ago, 1 version

group-pattern-2

Created a year ago, 2 versions

group-pattern-1

Created a year ago, 1 version

bind-calculation

Created a year ago, 1 version

bind-geospatial

Created a year ago, 6 versions

pokemon-color-yellow

Created a year ago, 2 versions

table-example

Created 2 years ago, 4 versions

timeline

Created 2 years ago, 2 versions

geo-2d

Created 2 years ago, 2 versions

pie-chart

Created 2 years ago, 3 versions

pivot-table

Created 2 years ago, 4 versions

gallery-1

Created 2 years ago, 1 version

multiple-audio-sources

Schema.org allows us to store the same audio fragment in multiple formats. HTML templating allows us to generate an HTML5 <audio> element that includes multiple <source> tags.

Created 2 years ago, 3 versions

sparql-html

This query shows how HTML literals can be returned by a SPARQL query.

Since the creation of complex HTML literals can be rather cumbersome, the query can be rewritten into this query that uses Triply Templates for simplification.

Created 2 years ago, 8 versions

sparql-templating

Query that shows how Triply Templating can be used to simplify SPARQL queries with complex literals. This is specifically useful for SPARQL queries that return HTML literals, which can be rather complex.

This query is a simplified version of this query that does not use Triply Templating.

Created 2 years ago, 4 versions

ask-2

An ASK query returns whether a specific fact is true or false. In this case, the fact is "Mew weights 50 kilograms." This fact is false (the actual weight is 40 kilograms.)

Created 3 years ago, 7 versions