Datadory notebook
Wikidata Sparql Query Company Data: Dataset Structure and Field Coverage
Datadory delivers wikidata sparql query company data covering comprehensive field definitions, entity mappings, and historical time series — structured for direct analytics and delivered on demand.
1,744 datasets. Pick your catch.
What does a Wikidata SPARQL query return for a company?
One honest limit matters before you write a query: Datadory's research pass on this record verified book-oriented properties (ISBN-13 P212, publisher P123, title P1476, publication date P577) against live responses, while noting that property coverage across arbitrary entities is uneven. Treat the graph as a linkage backbone, then validate the specific P-properties you join against a sample of companies.
How do you run a company query against the SPARQL endpoint, step by step?
- Write the triple patterns. Bind a subject variable to items classified as organizations or businesses, then chain property paths for each attribute you want. Property paths take the form
wdt:Pxxx, and the wikibase label service turns resulting URIs into localized display names.
- Send it. GET
with a URL-encoded SPARQL string, or POST the same query withAccept: application/sparql-results+json. Swap.jsonfor.csvor.tsv` when a spreadsheet is the destination.
- Read the bindings. Each solution maps variables to typed values - entity URIs like
string literals such as ISBN-13978-87-7934-585-0, andxsd:dateTimevalues like2011-01-01T00:00:00Z` for date properties.
- Iterate interactively first. The browser UI at query.wikidata.org bundles a visual Query Builder, an interactive Query Helper for assembling patterns, and table, map, graph, timeline and image-grid result views - cheaper than debugging in code.
Two etiquette rules apply throughout: send a descriptive User-Agent header, and expect each query to run under timeout and memory limits documented in the WDQS user manual rather than on the landing page.
Which company attributes can you enrich, and what joins them together?
Wikidata models companies through the same statement machinery it uses for books, and that symmetry is the practical point: the properties Datadory's researchers verified live on this record - P123 resolving a publisher to a publishing-house item, P50 linking work to author item, P31 classifying the entity, P291 recording place, P1476 carrying language-tagged text - are exactly the item-to-item edges that let one query roll a product up to its manufacturer and the manufacturer up to its corporate family. A catalog row keyed on an external identifier becomes a graph node once you join it on the identifier property and walk outward from there.
Fill rates are the caveat worth budgeting for. Datadory's verification notes flag uneven property coverage - many real-world entities lack the full statement set - so measure how many of your resolved companies actually carry the attribute you need before building a pipeline on it. Where coverage thins out, the pool's statistical datasets carry the load instead.
How do you pair the graph with Census establishment counts for NAICS 423430?
The graph tells you who a company is; official statistics tell you how big its channel is. The U.S. Census Bureau Data API - CBP / Economic Census / Wholesale Trade is a quality-score-9 REST/JSON service over 1,798 datasets, commercial delivery terms, whose County Business Patterns vintages 1986-2023 report establishment counts (ESTAB), employment (EMP) and annual payroll (PAYANN) for NAICS 423430 - computer and peripheral equipment merchant wholesalers - at national, state, county, MSA, congressional-district and ZIP-code levels.
Pick up where this leaves off
Every one of these ships with sample rows before you commit to anything.
Wikidata - Publishing Knowledge Graph + SPARQL
P212 · P957 · P1476 …+7 more
Wikidata SPARQL Query Service Data
FCC ID Equipment Authorization Database (FCCID.io mirror)
U.S. Census Bureau Data API - CBP / Economic Census / Wholesale Trade
ESTAB · EMP · PAYANN
Data.gov Catalog - Telecommunications & Carrier Datasets
dcat.title · dcat.description · dcat.publisher.name …+11 more
Eurostat Data Browser — Apparel, Textiles & Trade (PRODCOM, COMEXT)
Want rows instead of a pitch? Name the datasets.
API, files, or your warehouse. Daily, weekly, or hourly.
Get a sampleQuestions worth asking
Can Wikidata SPARQL results be used in commercial products?
Structured data from the main, Property, Lexeme and EntitySchema namespaces carries Creative Commons commercial delivery terms, permitting any reuse without attribution. Text in remaining namespaces is commercial delivery terms-SA 4.0. Wikimedia policy additionally asks automated clients to send a descriptive User-Agent header and avoid heavy sustained load, and individual queries face timeout and memory limits.
Do I need SPARQL skills, or can I use dumps or APIs instead?
Three access paths cover different skill levels: the visual Query Builder and Query Helper assemble patterns without writing SPARQL; the MediaWiki Action API call action=wbgetentities returns per-entity JSON by Q-number; and full JSON/RDF database dumps suit offline bulk enrichment. Formats span JSON, RDF, Turtle and CSV across the paths.