Triply Academy

academy
Created on Sep 12th, 2018
Members

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 4 months ago, 1 version

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

Created 4 months ago, 1 version
Created 4 months ago, 1 version
Created 4 months ago, 1 version
Created 10 months ago, 5 versions
Created a year ago, 1 version

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

Created a year ago, 1 version

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

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

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
Created a year ago, 2 versions
Created a year ago, 2 versions
Created a year ago, 2 versions
Created a year ago, 1 version
Created a year ago, 2 versions
Created a year ago, 1 version
Created a year ago, 1 version
Created a year ago, 6 versions
Created a year ago, 2 versions
Created 2 years ago, 4 versions
Created 2 years ago, 2 versions
Created 2 years ago, 1 version
Created 2 years ago, 3 versions
Created 2 years ago, 3 versions
Created 2 years ago, 1 version

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

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

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

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 2 years ago, 7 versions