Skip to main content
added 74 characters in body
Source Link
Nicolas Raoul
  • 8.5k
  • 5
  • 29
  • 61

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridgesrailway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes/sub-sub-classes/etc?
It MUST be with SPARQL.

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes/sub-sub-classes/etc?
It MUST be with SPARQL.

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes/sub-sub-classes/etc?
It MUST be with SPARQL.

Tweeted twitter.com/StackOpenData/status/849628717194387456
added 23 characters in body
Source Link
Nicolas Raoul
  • 8.5k
  • 5
  • 29
  • 61

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes/sub-sub-classes/etc? It
It MUST be with SPARQL.

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes? It MUST be with SPARQL.

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes/sub-sub-classes/etc?
It MUST be with SPARQL.

deleted 507 characters in body
Source Link
Nicolas Raoul
  • 8.5k
  • 5
  • 29
  • 61

Here is my naive query for bridges in Germany:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
    ?item wdt:P17 wd:Q183.    # Item's country property is: Germany
}

Problem: It only returns a hundred bridges insteada small fraction of the real number which is more than a thousandall bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes? It MUST be with SPARQL.

Here is my naive query for bridges in Germany:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
    ?item wdt:P17 wd:Q183.    # Item's country property is: Germany
}

Problem: It only returns a hundred bridges instead of the real number which is more than a thousand because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes? It MUST be with SPARQL.

Here is my naive query for bridges:

SELECT ?item WHERE {
    ?item wdt:P31 wd:Q12280.  # Item's type is: bridge
}

Problem: It only returns a small fraction of all bridges, because railway bridges (and all other subclasses of "bridge") are not counted.

How to retrieve all items, including sub-classes? It MUST be with SPARQL.

edited body
Source Link
Nicolas Raoul
  • 8.5k
  • 5
  • 29
  • 61
Loading
deleted 146 characters in body
Source Link
Nicolas Raoul
  • 8.5k
  • 5
  • 29
  • 61
Loading
Source Link
Nicolas Raoul
  • 8.5k
  • 5
  • 29
  • 61
Loading