beverages.gif

FileName
beverages.gif
Format
gif
Sha1sum (hex)
5e1be0328ca2c694d1de6f5b1b3d3b1ce90cb41f
Title
beverages.gif

Categories

Text
PREFIX foaf:       <http://xmlns.com/foaf/0.1/>
PREFIX dct:        <http://purl.org/dc/terms/>
PREFIX schema:     <https://schema.org/>

CONSTRUCT
{
    GRAPH ?graph
    {
        ?graph dct:title ?categoryName ;
            foaf:primaryTopic ?category .

        ?category a schema:ProductGroup ;
            dct:title ?categoryName ;
            dct:description ?description ;
            schema:name ?categoryName ;
            schema:identifier ?categoryID ;
            schema:description ?description ;
            foaf:depiction ?picture .
    }
}
WHERE
{
    ?category_row <#categoryID> ?categoryID ;
        <#description> ?description ;
        <#categoryName> ?categoryName ;
        <#pictureHash> ?pictureHash .

    BIND(uri(concat(str($base), "categories/")) AS ?container)
    BIND(uri(concat(str(?container), encode_for_uri(?categoryID), "/")) AS ?graph)
    BIND(uri(concat(str(?graph), "#this")) AS ?category)
    BIND(uri(concat(str($base), "uploads/", encode_for_uri(?pictureHash))) AS ?picture)
}
Title
Categories

Categories

Delimiter
,
EndedAtTime
16 June 2026 21:04
File
categories.csv
Query
Categories
StartedAtTime
16 June 2026 21:04
Title
Categories

categories.csv

FileName
categories.csv
Format
csv
Sha1sum (hex)
41049b79a4a6e8407a0e878c6e4943ea824a7f1f
Title
categories.csv

categories.rq

FileName
categories.rq
Format
plain
Sha1sum (hex)
c13db934bbc8b4d651e674332adfd932d1ddd8c0
Title
categories.rq

Category revenue

Text
PREFIX schema: <https://schema.org/>

SELECT ?categoryName (SUM(?sale) AS ?revenue)
WHERE {
    GRAPH ?orderGraph {
        ?order schema:orderedItem ?orderItem .
        ?orderItem schema:orderedItem ?product ;
                   schema:orderQuantity ?quantity ;
                   schema:price ?price .
        BIND(?quantity * ?price AS ?sale)
    }
    GRAPH ?productGraph {
        ?product schema:category ?category .
    }
    GRAPH ?categoryGraph {
        ?category schema:name ?categoryName .
    }
}
GROUP BY ?category ?categoryName
ORDER BY DESC(?revenue)
Title
Category revenue

cereals.gif

FileName
cereals.gif
Format
gif
Sha1sum (hex)
68ccbb7d6dbd511b9d5faf1f0d1c09c2872d8081
Title
cereals.gif

condiments.gif

FileName
condiments.gif
Format
gif
Sha1sum (hex)
6e5d9df213a6c46b4f75e9ba2e321436f80d8bed
Title
condiments.gif

confections.gif

FileName
confections.gif
Format
gif
Sha1sum (hex)
c158852927adca461b57d6a1db332eaa38ff35e6
Title
confections.gif

diary.gif

FileName
diary.gif
Format
gif
Sha1sum (hex)
3e612531a9a160b12c3db6565a2b03c0e8617ed3
Title
diary.gif
Distinct subjects
8
Number of triples
32
WasGeneratedBy
Categories

meat.gif

FileName
meat.gif
Format
gif
Sha1sum (hex)
7e12f6c6f5202018e380c58262b654b800e1b250
Title
meat.gif

produce.gif

FileName
produce.gif
Format
gif
Sha1sum (hex)
1474abcca6dc8c27c20edc2d5f70a14db8c7513d
Title
produce.gif
Category variable name
categoryName
Chart type
BarChart
Query
Products per category
Series variable name
productCount
Title
Products per category
Text
PREFIX schema: <https://schema.org/>

SELECT ?categoryName (COUNT(DISTINCT ?product) AS ?productCount)
WHERE {
    GRAPH ?productGraph {
        ?product a schema:Product ;
                 schema:category ?category .
    }
    GRAPH ?categoryGraph {
        ?category schema:name ?categoryName .
    }
}
GROUP BY ?category ?categoryName
ORDER BY DESC(?productCount)
Title
Products per category
Category variable name
categoryName
Chart type
BarChart
Query
Category revenue
Series variable name
revenue
Title
Revenue by category

seafood.gif

FileName
seafood.gif
Format
gif
Sha1sum (hex)
ff84beb4a82d5186fa3b80ce84ce095721093e69
Title
seafood.gif

Select categories

Text
PREFIX  schema: <https://schema.org/>

  SELECT DISTINCT  ?category
  WHERE
    { GRAPH ?doc
        { ?category  a           schema:ProductGroup ;
                    schema:name  ?categoryName
        }
    }
  ORDER BY ?categoryName
Title
Select categories
Layout mode
Grid
Query
Select categories