
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (10)
View Page History...
When you execute the query on GraphDB, you get the following as an output (instead of the real results):
.. codeblock:: sparql
{noformat}
SELECT (COUNT(?wine) AS ?wines) ?year
{
SELECT (COUNT(?wine) AS ?wines) ?year
{
SELECT (COUNT(?wine) AS ?wines) ?year
{
{
{ #  Begin optimization group 1 
?wine rdf:type onto:example/wine#Wine . # Collection size: 5.0
# Predicate collection size: 64.0
# Unique subjects: 50.0
# Unique objects: 12.0
# Current complexity: 5.0
} #  End optimization group 1 
# ESTIMATED NUMBER OF ITERATIONS: 5.0
?wine rdf:type onto:example/wine#Wine . # Collection size: 5.0
# Predicate collection size: 64.0
# Unique subjects: 50.0
# Unique objects: 12.0
# Current complexity: 5.0
} #  End optimization group 1 
# ESTIMATED NUMBER OF ITERATIONS: 5.0
{ #  Begin optimization group 1  ?wine rdf:type onto:example/wine#Wine . # Collection size: 5.0 # Predicate collection size: 64.0 # Unique subjects: 50.0 # Unique objects: 12.0 # Current complexity: 5.0 } #  End optimization group 1 
# ESTIMATED NUMBER OF ITERATIONS: 5.0
# ESTIMATED NUMBER OF ITERATIONS: 5.0
OPTIONAL
{
{
{ #  Begin optimization group 2  ?wine onto:example/wine#hasYear ?year . # Collection size: 5.0 # Predicate collection size: 5.0 # Unique subjects: 5.0 # Unique objects: 2.0 # Current complexity: 5.0 } #  End optimization group 2 
{ #  Begin optimization group 2 
?wine onto:example/wine#hasYear ?year . # Collection size: 5.0
# Predicate collection size: 5.0
# Unique subjects: 5.0
# Unique objects: 2.0
# Current complexity: 5.0
} #  End optimization group 2 
?wine onto:example/wine#hasYear ?year . # Collection size: 5.0
# Predicate collection size: 5.0
# Unique subjects: 5.0
# Unique objects: 2.0
# Current complexity: 5.0
} #  End optimization group 2 
# ESTIMATED NUMBER OF ITERATIONS: 5.0
}
}
GROUP BY ?year
ORDER BY DESC(?wines)
LIMIT 1000
GROUP BY ?year
ORDER BY DESC(?wines)
LIMIT 1000
}
GROUP BY ?year
ORDER BY DESC(?wines)
LIMIT 1000
{noformat}
GROUP BY ?year
ORDER BY DESC(?wines)
LIMIT 1000
{noformat}