Simple Guide for Google Spreadsheet Data Imports via SPARQL

This is a simple guide for importing Linked Data into SPARQL using SPARQL Protocol URLs. Note, unlike my prior demos [1], I am going to use the ImportData() as opposed to ImportHtml() function.

Why is this important?

Spreadsheets are eternally powerful productivity tools. For instance, showcasing the use of an ODBC Data Source Name (DSN) as the basis for binding and importing data into Excel en route to making Pivot Tables remains ODBC's ultimately value proposition showcase. Now, we can unshackle this capability from Excel and simply repeat the patter at Web scale via Google Spreadsheet. In addition, your Google Spreadsheet becomes a powerful Linked Data exploration entry point, all you have to do is click on one of the links in the spreadsheet for full effect.


1. Go to the HTML UI of your SPARQL Endpoint -- in this case I am using DBpedia SPARQL endpoint (which means Virtuoso's SPARQL Service)

2. Enter your SPARQL Query choosing CSV as your output format -- for this exercise we use SELECT but note it works just as well for more sophisticated DESCRIBE and CONSTRUCT queries

3. Copy your SPARQL Results URL and then paste into the ImportData() function as basis for a Google Spreadsheet formula -- the function signature is ImportData(URL) so usage patter is: ImportData("{SPARQL-Protocol-based-Query-Results-URL}").

I've attached screenshots to this post that showcase steps 1-3 above.

Additional Information

1. -- SPARQL Query Results URL (note: this works with Excel and any other package that can handle CSV files/resources)

2. -- SPARQL Query Text URL

3. =ImportData("") -- actual Google Spreadsheet Formula (just paste as is into a cell of choice in your Google Spreadsheet)



1. -- previous posts about importing data into Google Spreadsheet via the ImportHtml() function

2. -- detailed post about why and how Linked Data trumps ODBC, JDBC, ADO.NET (Entity Frameworks), JDO etc.. re. Open Data Access & Connectivity .

#LinkedData #Spreadsheet #SPARQL #SemanticWeb #CoRelational #CoSQL #NoSQL #RDBMS #DBMS #BigData #SmartData   #Web30  
5 Photos - View album
Shared publiclyView activity