Published 7th March 2011
Updated 9th July 2010
Resources 256

National Basic Intelligence Factbook produced semiannually until 1980. Country entries include sections on Land, Water, People, Government, Economy, Community and Defense Forces.

Explore the dataset
Default APIs

SPARQL Endpoint

Use the SPARQL 1.1 query language to perform structured queries against a dataset. Useful for performing precise queries against a dataset whose structure you understand.

Sample queries

This simple query will return all the triples related to the ns:Country Ireland

Query: 
PREFIX ns: <http://www4.wiwiss.fu-berlin.de/factbook/ns#> DESCRIBE <http://www4.wiwiss.fu-berlin.de/factbook/resource/Ireland>
Login to test this query using our experimental API explorer Permalink to this sample query
Query: 
PREFIX ns: <http://www4.wiwiss.fu-berlin.de/factbook/ns#> SELECT distinct ?o WHERE { ?s ?o ?p . } ORDER BY ?o
Login to test this query using our experimental API explorer Permalink to this sample query

All country names

Query: 
SELECT ?name WHERE { ?country <http://www4.wiwiss.fu-berlin.de/factbook/ns#name> ?name }
Login to test this query using our experimental API explorer Permalink to this sample query

Naming problems, spaces for underscores, not clear how to get many countries

Query: 
PREFIX ns: <http://www4.wiwiss.fu-berlin.de/factbook/ns#> DESCRIBE <http://www4.wiwiss.fu-berlin.de/factbook/resource/Czech_Repulic>
Login to test this query using our experimental API explorer Permalink to this sample query
Create a sample query

Search API

Perform a free-text search against the text fields indexed in a dataset. Useful when you want to quickly query a dataset but don't know, or need to know its structure. There is also a solr search endpoint allowing more complex queries.

Lookup API

Retrieve a description of a single resource. Useful for fetching the key properties and relationships of a single entity.

Reconciliation API

Useful for resolving names, labels or codes against a dataset in Kasabi to find links to more data. This API is compatible with the Google Refine tool.

How to Attribute This Dataset

Kasabi provides a quick and easy way to attribute a dataset from any webpage. We think attribution is an important community norm.

To directly embed an attribution message in a webpage, add a script tag that invokes our Attribution API as follows

<script
     type="text/javascript"
     src="http://api.kasabi.com/dataset/cia-world-fact-book/attribution">
</script>

If you need more flexible options, then read the Attribution API documentation