Interaction and Querying

https://bit.ly/43NPpwi

By Mads Holten Rasmussen

Agenda

  • SPARQL 101
  • SPARQL is a graph ๐Ÿ•ธ๏ธ
  • Interactive session: LD-BIM ๐Ÿ•น๏ธ๐ŸŽฌ
  • Code along: LBD app โš™๏ธ๐Ÿ”ง๐Ÿฆพ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ’ป
  • Coffee break โ˜•  ->  hackathon ๐Ÿ’ป๐Ÿค“๐Ÿ’€๐Ÿ”ฅ

SPARQL 101

SPARQL: SPARQL Protocol and RDF Query Language

SPARQL is a graph ๐Ÿ•ธ๏ธ

graph SPARQL

						SELECT DISTINCT ?coActorName ?age
						WHERE {
							?movie dbo:starring ?theActor . 
							?movie dbo:starring ?otherActor . 

							?theActor rdfs:label "Mads Mikkelsen"@en .

							?otherActor rdfs:label ?coActorName .
							?otherActor dbo:birthDate ?bd .
							  
							BIND( NOW() as ?today )
							BIND( YEAR(?today)-YEAR(?bd) as ?age )
						
							FILTER(LANG(?coActorName) = "en")
						}					
					
https://dbpedia.org/sparql

Interactive session: LD-BIM ๐Ÿ•น๏ธ๐ŸŽฌ

ld-bim.web.app

BOT: The Building Topology Ontology

bot:Zone

bot:Element

bot:Interface

Try yourself!

Query the model on LD-BIM ๐Ÿ”จ๐Ÿ•น๏ธ

Handout

SPARQL Cheat Sheet

Code along: LBD app โš™๏ธ๐Ÿ”ง๐Ÿฆพ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ’ป

https://github.com/LBD-Hackers/LBD-app-tutorial

Example app that uses this toolset

Room history

Need 3D? Use OpenBIM Components

Demo
Repo

Thank you for your attention!

Questions? Thoughts? Ideas? Let's discuss them over a โ˜•

Learn more

My tools (please contribute ๐Ÿ˜Ž)

Other tools