andrew.jpg

FileName
andrew.jpg
Format
jpeg
Sha1sum (hex)
2e01d9bd3252b4d3a18269b8a7144a5ac53a8eea
Title
andrew.jpg

anne.jpg

FileName
anne.jpg
Format
jpeg
Sha1sum (hex)
adc69ff7f1e985655a37f818400e45d905aaef8a
Title
anne.jpg
Text
PREFIX schema:     <https://schema.org/>

CONSTRUCT
{
    GRAPH ?graph
    {
        ?employee schema:areaServed ?territory
    }
}
WHERE
{
    ?employee_territory <#employeeID> ?employeeID ;
        <#territoryID> ?territoryID .

    BIND(uri(concat(str($base), "employees/")) AS ?container)
    BIND(uri(concat(str(?container), encode_for_uri(?employeeID), "/")) AS ?graph)
    BIND(uri(concat(str(?graph), "#this")) AS ?employee)
    BIND(uri(concat(str($base), "territories/", encode_for_uri(?territoryID), "/#this")) AS ?territory)
}
Title
Employee territories
Delimiter
,
EndedAtTime
16 June 2026 21:06
File
employee_territories.csv
Query
Employee territories
StartedAtTime
16 June 2026 21:04
Title
Employee territories
FileName
employee_territories.csv
Format
csv
Sha1sum (hex)
f25aca9a31902c896461f3668c46f8876ed3aaf1
Title
employee_territories.csv
FileName
employee_territories.rq
Format
plain
Sha1sum (hex)
46aa0f10f8ef0c69018de398b528b2e82dd1668c
Title
employee_territories.rq

Employees

Text
PREFIX foaf:       <http://xmlns.com/foaf/0.1/>
PREFIX dct:        <http://purl.org/dc/terms/>
PREFIX schema:     <https://schema.org/>
PREFIX xsd:        <http://www.w3.org/2001/XMLSchema#>
PREFIX geo:        <http://www.w3.org/2003/01/geo/wgs84_pos#>

CONSTRUCT
{
    GRAPH ?graph
    {
        ?graph dct:title ?lastName ;
            foaf:primaryTopic ?employee ;
            foaf:topic ?postalAddress .

        ?employee a schema:Person ;
            schema:identifier ?employeeID ;
            dct:title ?lastName ;
            dct:description ?title ;
            schema:givenName ?firstName ;
            schema:familyName ?lastName ;
            schema:jobTitle ?title ;
            schema:honorificPrefix  ?titleOfCourtesy ;
            schema:birthDate ?birthDate;
            # ?hireDate
            schema:address ?postalAddress ;
            schema:telephone ?homePhone ;
            schema:telephone ?extension ;
            schema:description ?notes ;
            schema:sponsor ?reportsToEmployee ;
            geo:lat ?lat ;
            geo:long ?long ;
            foaf:img ?photo .

        ?postalAddress a schema:PostalAddress ;
            foaf:page ?graph ;
            schema:addressCountry ?country ;
            schema:addressLocality ?city ;
            schema:postalCode ?postalCode ;
            schema:streetAddress ?address ;
            schema:addressRegion ?region .
    }
}
WHERE
{
    ?employee_row <#employeeID> ?employeeID ;
        <#lastName> ?lastName ;
        <#firstName> ?firstName ;
        <#title> ?title ;
        <#titleOfCourtesy> ?titleOfCourtesy ;
        <#birthDate> ?birthDateString ;
        <#hireDate> ?hireDateString ;
        <#address> ?address ;
        <#city> ?city ;
        <#postalCode> ?postalCode ;
        <#country> ?country ;
        <#homePhone> ?homePhone ;
        <#extension> ?extension ;
        <#photoHash> ?photoHash ;
        <#notes> ?notes ;
        <#lat> ?lat_string ;
        <#long> ?long_string .

    OPTIONAL {
        ?employee_row <#region> ?region
    }
    OPTIONAL {
        ?employee_row <#reportsTo> ?reportsTo
        BIND(uri(concat(str($base), "employees/", encode_for_uri(?reportsTo), "/#this")) AS ?reportsToEmployee) # cannot use ?container since it's undefined in the OPTIONAL scope
    }

    BIND(uri(concat(str($base), "employees/")) AS ?container)
    BIND(uri(concat(str(?container), encode_for_uri(?employeeID), "/")) AS ?graph)
    BIND(uri(concat(str(?graph), "#this")) AS ?employee)
    BIND(uri(concat(str(?graph), "#address")) AS ?postalAddress)
    BIND(xsd:float(?lat_string) AS ?lat)
    BIND(xsd:float(?long_string) AS ?long)
    BIND(strdt(substr(?birthDateString, 1, 10), xsd:date) AS ?birthDate)
    BIND(strdt(substr(?hireDateString, 1, 10), xsd:date) AS ?hireDate)
    BIND(uri(concat(str($base), "uploads/", encode_for_uri(?photoHash))) AS ?photo)
}
Title
Employees

Employees

Delimiter
,
EndedAtTime
16 June 2026 21:04
File
employees.csv
Query
Employees
StartedAtTime
16 June 2026 21:04
Title
Employees

employees.csv

FileName
employees.csv
Format
csv
Sha1sum (hex)
b2b67dbff7be253902e7f272187b847fda06df1c
Title
employees.csv

employees.rq

FileName
employees.rq
Format
plain
Sha1sum (hex)
65392261093a85c606dbadf5b3d04dafaf96e973
Title
employees.rq
Distinct subjects
49
Number of triples
98
WasGeneratedBy
Employee territories
Distinct subjects
9
Number of triples
166
WasGeneratedBy
Employees

janet.jpg

FileName
janet.jpg
Format
jpeg
Sha1sum (hex)
56c3bf02eb71dc6039b3d88cd48064765e7e9a2e
Title
janet.jpg

laura.jpg

FileName
laura.jpg
Format
jpeg
Sha1sum (hex)
3e093b6c95ea749c6086600b54331a519d555307
Title
laura.jpg

margaret.jpg

FileName
margaret.jpg
Format
jpeg
Sha1sum (hex)
e7c6d342fda288dbf1a2ebfdad8423b618c3a4ec
Title
margaret.jpg

michael.jpg

FileName
michael.jpg
Format
jpeg
Sha1sum (hex)
cb8b0702d0e1c948bebb1377dffca3787147890e
Title
michael.jpg

nancy.jpg

FileName
nancy.jpg
Format
jpeg
Sha1sum (hex)
fb2e87988887cebf252947ba5d98e34d01d44ed4
Title
nancy.jpg

robert.jpg

FileName
robert.jpg
Format
jpeg
Sha1sum (hex)
bcc47ec0ed5ef773f48af4ba47a1461784651a45
Title
robert.jpg
Category variable name
employeeName
Chart type
BarChart
Query
Sales by employee
Series variable name
totalSales
Title
Sales by employee

Sales by employee

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

SELECT ?employeeName (SUM(?sale) AS ?totalSales)
WHERE {
    GRAPH ?orderGraph {
        ?order schema:broker ?employee ;
               schema:orderedItem ?orderItem .
        ?orderItem schema:orderQuantity ?quantity ;
                   schema:price ?price .
        BIND(?quantity * ?price AS ?sale)
    }
    GRAPH ?employeeGraph {
        ?employee schema:givenName ?givenName ;
                  schema:familyName ?familyName .
        BIND(CONCAT(?givenName, " ", ?familyName) AS ?employeeName)
    }
}
GROUP BY ?employee ?employeeName
ORDER BY DESC(?totalSales)
Title
Sales by employee

Select employees

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

  SELECT DISTINCT  ?employee
  WHERE
    { GRAPH ?doc
        { ?employee  a                 schema:Person ;
                    schema:familyName  ?lastName
          OPTIONAL
            { ?employee  schema:areaServed  ?territory }
          OPTIONAL
            { ?employee  schema:sponsor  ?reportsToEmployee }
          FILTER NOT EXISTS { GRAPH ?supplierGraph
                                { ?supplier  a               schema:Corporation ;
                                            schema:employee  ?employee
                                }
                            }
        }
    }
  ORDER BY ?lastName
Title
Select employees
Layout mode
Grid
Query
Select employees

steven.jpg

FileName
steven.jpg
Format
jpeg
Sha1sum (hex)
71d6faa8ce45949526ca2317a78b87567bb6721f
Title
steven.jpg