SlideShare a Scribd company logo
Background
Data Sets
Rules
Queries
Conclusion and Future Work
PSOA RuleML Integration of Relational and
Object-Centered Geospatial Data
The 9th International Web Rule Symposium
RuleML 2015 Challenge
August 2-5, 2015
Gen Zou
Faculty of Computer Science,
University of New Brunswick, Fredericton, Canada
1 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Outline
1 Background
2 Data Sets
3 Rules
4 Queries
5 Conclusion and Future Work
2 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Outline
1 Background
2 Data Sets
3 Rules
4 Queries
5 Conclusion and Future Work
3 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Backround
Geospatial data are increasingly available on the Web, e.g.
Geonames and LinkedGeoData
Many real-world applications are built on top of data sets
that contain geospatial information
Integration of application data with external geospatial data
becomes a popular topic
4 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Backround
Data can be modeled in different paradigms
Relational
Widely used for relational DBs and KBs, representing
information in classical logic
Object-centered
Each object is represented by a unique Object IDentifier
(OID) typed by a class and described by an unordered
collection of slots, each being a pair of a name and a filler
Integration needs cross-paradigm transformation, which
can be expressed in the object-relational rule language
PSOA RuleML
5 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
PSOA RuleML
Integrates relational and object-oriented modeling
Generalizes RIF-BLD, F-logic and POSL
Uses positional-slotted object-applicative (psoa) terms
General case:
o # f([t1,1 ... t1,n1 ] ... [tm,1 ... tm,nm ] p1->v1 ... pk->vk)
Special cases:
o # f(t1 ... tn p1->v1 ... pk->vk)
o # f(t1 ... tn)
o # f( p1->v1 ... pk->vk)
o # f
6 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Outline
1 Background
2 Data Sets
3 Rules
4 Queries
5 Conclusion and Future Work
7 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Data Sets
Two relational data sets and one object-centered data set,
expressed in PSOA RuleML
Relational data set of house rental information
ex:HouseRentalInfo(1 "35 Routliffe Lane" "Toronto" "ON" "CA"
3 2500 "False"^^xs:boolean)
ex:HouseRentalInfo(2 "42 Frey Crescent" "Toronto" "ON" "CA"
2 900 "True"^^xs:boolean)
Columns: ref number, street, city, province, country, number of bedrooms, price,
furnished
8 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Data Sets
Relational data set containing addresses and their GPS
coordinates
gc:Geocode(43.778267 -79.426723
"35 Routliffe Lane" "Toronto" "ON" "CA")
gc:Geocode(43.74242 -79.291529
"42 Frey Crescent" "Toronto" "ON" "CA")
Columns: latitude, longitude, street, city, province, country
Object-centered data set consisting of geospatial features
(Using Geonames vocabulary)
Sample fact:
<http://sws.geonames.org/501324/>#gn:Feature(
gn:name->"Canadian Tire"
gn:featureCode->gn:S.RET
geo:lat->43.7
geo:long->-79.1)
9 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Outline
1 Background
2 Data Sets
3 Rules
4 Queries
5 Conclusion and Future Work
10 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Hierarchy of Geospatial Entities
gr:SubwayStation##gr:GeoEntity
gr:Restaurant##gr:GeoEntity
gr:Store##gr:GeoEntity
gr:House##gr:GeoEntity
gr:HouseForRent##gr:House
gr:GeoEntity class denotes all geospatial entities that
can be located
Every gr:GeoEntity-typed object has a slot gr:coord
for the precise coordinates of its centroid
11 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Integration Rules
Extract Address Information
Forall ?Key ?Name ?Phone ?Street ?City ?Prov ?Country
?PostCode ?Addr
(
Exists ?Addr
(
And(gr:HouseRentID(?RefNo)#gr:HouseForRent(
?Bedrooms ?Price ?Furnished gr:addr->?Addr)
?Addr#gr:Address(gr:street->?Street
gr:city->?City
gr:prov->?Prov
gr:country->?Country))
)
:- ex:HouseRentalInfo(?RefNo ?Street ?City ?Prov ?Country
?Bedrooms ?Price ?Furnished)
)
12 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Integration Rules
Enrich each GeoEntity with its coordinates, by
retrieving the coordinates from the gc:Geocode relation
using its address
Forall ?O ?Ad ?Lat ?Long ?Street ?City ?Prov ?Country
(
?O#gr:GeoEntity(gr:coord->gr:Point(?Lat ?Long))
:- And(?O#gr:GeoEntity(gr:addr->?Ad)
?Ad#gr:Address(gr:street->?Street
gr:city->?City
gr:prov->?Prov
gr:country->?Country)
gc:Geocode(?Lat ?Long ?Street ?City ?Prov ?Country))
)
13 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Integration Rules
Extract information from the object-centered data set
Forall ?O ?Name ?Lat ?Long
(
?O#gr:GeoEntity(gr:name->?Name
gr:coord->gr:Point(?Lat ?Long))
:- ?O#gn:Feature(gn:name->?Name
geo:lat->?Lat
geo:long->?Long)
)
14 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Integration Rules
Map feature codes in the object-centered data set
Forall ?O
(
?O#gr:SubwayStation
:- ?O#gn:Feature(gn:featureCode->gn:S.MTRO)
)
Forall ?O
(
?O#gr:Restaurant
:- ?O#gn:Feature(gn:featureCode->gn:S.REST)
)
Forall ?O
(
?O#gr:Store
:- ?O#gn:Feature(gn:featureCode->gn:S.RET)
)
15 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Rules Inferencing Geospatial Relationships
Derive a GeoEntity ?O is in an ?Area by composing the slot
gr:coord and the gr:RCCProperPartOf relation
Forall ?O ?Ad ?Pt ?Area
(
?O#gr:GeoEntity(gr:in->?Area)
:- And(
?O#gr:GeoEntity(gr:coord->?Pt)
gr:RCCProperPartOf(?Pt ?Area)
)
)
16 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Rules Inferencing Geospatial Relationships
Derive gr:RCCProperPartOf between a point and a box,
defined by its minimum latitude, minimum longitude, maximum
latitude, and maximum longitude, through arithmetic
computation
Forall ?Lat ?Long ?LatMin ?LongMin ?LatMax ?LongMax (
gr:RCCProperPartOf(gr:Point(?Lat ?Long)
gr:Box(?LatMin ?LongMin ?LatMax ?LongMax))
:- And (
External(pred:numeric-greater-than-or-equal(?Lat ?LatMin))
External(pred:numeric-greater-than-or-equal(?Long ?LongMin))
External(pred:numeric-less-than-or-equal(?Lat ?LatMax))
External(pred:numeric-less-than-or-equal(?Long ?LongMax))
)
)
17 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Rules Inferencing Geospatial Relationships
Derive the distance (measured in km) of ?O1 and ?O2 to be
less or equal than ?Distance, used an external function
gr:distanceLessEqual
Forall ?Lat1 ?Long1 ?Lat2 ?Long2 ?Distance ?Name ?G ?F
(
gr:inDistance(?O1 ?O2 ?Distance)
:-
And(
?O1#gr:GeoEntity(gr:coord->gr:Point(?Lat1 ?Long1))
?O2#gr:GeoEntity(gr:coord->gr:Point(?Lat2 ?Long2))
External(
gr:distanceLessEqual(?Lat1 ?Long1 ?Lat2 ?Long2 ?Distance)))
)
18 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Outline
1 Background
2 Data Sets
3 Rules
4 Queries
5 Conclusion and Future Work
19 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Queries
Look for certain type of geospatial entities in a region and their
addresses
And(?H#gr:HouseForRent(gr:in->gr:Box(43 -80 44 -79) gr:addr->?Addr)
?Addr#gr:Address(gr:street->?Street))
Look for all geospatial entities near a specific entity
All stores within 5km of the house with reference number 2:
And(?S#gr:Store(gr:name->?Name)
gr:inDistance(gr:HouseRentID(2) ?S 5))
All houses within 2km of the subway station named
"Spadina"
And(?S#gr:SubwayStation(gn:name->"Spadina")
?H#gr:HouseForRent gr:inDistance(?H ?S 2))
20 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Outline
1 Background
2 Data Sets
3 Rules
4 Queries
5 Conclusion and Future Work
21 / 22
Background
Data Sets
Rules
Queries
Conclusion and Future Work
Conclusion and Future Work
Demonstrate the usefulness of PSOA rules for the
integration of geospatial data modeled in different
paradigms
A similar approach can be applied to enrich other data sets
containing address information
Future work
Expand KB with required ground facts imported from a
relational and/or graph database
Evaluate reasoning performance on expanded KB
22 / 22

More Related Content

PDF
The spatiotemporal RDF store Strabon
PDF
8th TUC Meeting | Lijun Chang (University of New South Wales). Efficient Subg...
PDF
The DE-9IM Matrix in Details using ST_Relate: In Picture and SQL
PDF
Spatial Indexing
PDF
Analyzing the Evolution of Vocabulary Terms and Their Impact on the LOD Cloud
PPTX
R programming language in spatial analysis
PPTX
Web-based framework for online sketch-based image retrieval
PDF
Distributed Keyword Search over RDF via MapReduce
The spatiotemporal RDF store Strabon
8th TUC Meeting | Lijun Chang (University of New South Wales). Efficient Subg...
The DE-9IM Matrix in Details using ST_Relate: In Picture and SQL
Spatial Indexing
Analyzing the Evolution of Vocabulary Terms and Their Impact on the LOD Cloud
R programming language in spatial analysis
Web-based framework for online sketch-based image retrieval
Distributed Keyword Search over RDF via MapReduce

Viewers also liked (18)

PDF
Challenge@RuleML2015 Datalog+, RuleML and OWL 2 - Formats and Translations f...
PDF
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
PDF
Doctoral Consortium@RuleML2015 -Multidimensional Ontologies for Contextual Qu...
PDF
Doctoral Consortium@RuleML2015: Seamless Cooperation of JAVA and PROLOG for ...
PDF
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
PDF
RuleML2015: FOWLA, a federated architecture for ontologies
PDF
Challenge@RuleML2015 EasyMiner/R Preview: Towards a Web Interface for Associa...
PDF
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
PDF
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
PDF
RuleML2015: Towards Formal Semantics for ODRL Policies
PDF
Doctoral Consortium@RuleML2015: A Rule-Based Language for Integrating Busines...
PDF
RuleML2015: Rule-based data transformations in electricity smart grids
PDF
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
PDF
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
PDF
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
PDF
RuleML2015: PSOA2Prolog: Object-Relational Rule Interoperation and Implementa...
PDF
Doctoral Consortium@RuleML2015: Genetic Programming for Design Grammar Rule I...
PDF
RuleML2015: Input-Output STIT Logic for Normative Systems
Challenge@RuleML2015 Datalog+, RuleML and OWL 2 - Formats and Translations f...
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
Doctoral Consortium@RuleML2015 -Multidimensional Ontologies for Contextual Qu...
Doctoral Consortium@RuleML2015: Seamless Cooperation of JAVA and PROLOG for ...
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: FOWLA, a federated architecture for ontologies
Challenge@RuleML2015 EasyMiner/R Preview: Towards a Web Interface for Associa...
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
RuleML2015: Towards Formal Semantics for ODRL Policies
Doctoral Consortium@RuleML2015: A Rule-Based Language for Integrating Busines...
RuleML2015: Rule-based data transformations in electricity smart grids
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
RuleML2015: User Extensible System to Identify Problems in OWL Ontologies and...
RuleML2015: PSOA2Prolog: Object-Relational Rule Interoperation and Implementa...
Doctoral Consortium@RuleML2015: Genetic Programming for Design Grammar Rule I...
RuleML2015: Input-Output STIT Logic for Normative Systems
Ad

Similar to Challenge@RuleML2015 Modeling Object-Relational Geolocation Knowledge in PSOA RuleML (20)

PPT
Open Analytics Environment
PDF
GIS_FDP_Final.pdf
PDF
Representing and Querying Geospatial Information in the Semantic Web
PDF
VOLT - ESWC 2016
PPT
Simpósio Brasileiro de Banco de Dados 2005
PPT
Presentation
PPTX
Querying Incomplete Geospatial Information in RDF
PPTX
ICFHR 2014 Competition on Handwritten KeyWord Spotting (H-KWS 2014)
PPTX
On the multi-dimensional augmentation of fingerprint data for indoor localiza...
PPTX
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
PDF
Poster Final
PDF
rworldmap: A New R package for Mapping Global Data
PDF
Amin tayyebi: Big Data and Land Use Change Science
PDF
How Do Gain and Discount Functions Affect the Correlation between DCG and Use...
PDF
Big Linked Data Federation - ExtremeEarth Open Workshop
PPTX
Geocoding for beginners
PDF
Benchmarking Link Discovery Systems for Geo-Spatial Data - BLINK ISWC2017.
PPT
Iccsa stankuteha180611
PPT
Improvement of Spatial Data Quality Using the Data Conflation
PPTX
Error Tolerant Record Matching PVERConf_May2011
Open Analytics Environment
GIS_FDP_Final.pdf
Representing and Querying Geospatial Information in the Semantic Web
VOLT - ESWC 2016
Simpósio Brasileiro de Banco de Dados 2005
Presentation
Querying Incomplete Geospatial Information in RDF
ICFHR 2014 Competition on Handwritten KeyWord Spotting (H-KWS 2014)
On the multi-dimensional augmentation of fingerprint data for indoor localiza...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Poster Final
rworldmap: A New R package for Mapping Global Data
Amin tayyebi: Big Data and Land Use Change Science
How Do Gain and Discount Functions Affect the Correlation between DCG and Use...
Big Linked Data Federation - ExtremeEarth Open Workshop
Geocoding for beginners
Benchmarking Link Discovery Systems for Geo-Spatial Data - BLINK ISWC2017.
Iccsa stankuteha180611
Improvement of Spatial Data Quality Using the Data Conflation
Error Tolerant Record Matching PVERConf_May2011
Ad

More from RuleML (20)

PDF
Aggregates in Recursion: Issues and Solutions
PDF
A software agent controlling 2 robot arms in co-operating concurrent tasks
PDF
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
PDF
RuleML 2015: When Processes Rule Events
PDF
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
PDF
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
PDF
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
PDF
RuleML 2015 Constraint Handling Rules - What Else?
PDF
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
PDF
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
PDF
RuleML2015: Rule-Based Exploration of Structured Data in the Browser
PDF
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
PDF
RuleML2015: Compact representation of conditional probability for rule-based...
PDF
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
PDF
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
PDF
RuleML2015: Representing Flexible Role-Based Access Control Policies Using Ob...
PDF
RuleML2015: Rule Generalization Strategies in Incremental Learning of Disjunc...
PDF
Industry@RuleML2015 DataGraft
PDF
Challenge@rule ml2015 rule based recommender systems for the Web of Data
PDF
Challenge@RuleML2015 Exchanging Data and Ontological Definitions in Multi-Age...
Aggregates in Recursion: Issues and Solutions
A software agent controlling 2 robot arms in co-operating concurrent tasks
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
RuleML 2015: When Processes Rule Events
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
RuleML 2015 Constraint Handling Rules - What Else?
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
RuleML2015: Rule-Based Exploration of Structured Data in the Browser
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Compact representation of conditional probability for rule-based...
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
RuleML2015: Representing Flexible Role-Based Access Control Policies Using Ob...
RuleML2015: Rule Generalization Strategies in Incremental Learning of Disjunc...
Industry@RuleML2015 DataGraft
Challenge@rule ml2015 rule based recommender systems for the Web of Data
Challenge@RuleML2015 Exchanging Data and Ontological Definitions in Multi-Age...

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
A Presentation on Artificial Intelligence
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPT
Teaching material agriculture food technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Machine Learning_overview_presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Approach and Philosophy of On baking technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation theory and applications.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Assigned Numbers - 2025 - Bluetooth® Document
A Presentation on Artificial Intelligence
Spectral efficient network and resource selection model in 5G networks
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Programs and apps: productivity, graphics, security and other tools
Teaching material agriculture food technology
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
Spectroscopy.pptx food analysis technology
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
Machine Learning_overview_presentation.pptx
sap open course for s4hana steps from ECC to s4
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Approach and Philosophy of On baking technology
Big Data Technologies - Introduction.pptx
Encapsulation theory and applications.pdf

Challenge@RuleML2015 Modeling Object-Relational Geolocation Knowledge in PSOA RuleML

  • 1. Background Data Sets Rules Queries Conclusion and Future Work PSOA RuleML Integration of Relational and Object-Centered Geospatial Data The 9th International Web Rule Symposium RuleML 2015 Challenge August 2-5, 2015 Gen Zou Faculty of Computer Science, University of New Brunswick, Fredericton, Canada 1 / 22
  • 2. Background Data Sets Rules Queries Conclusion and Future Work Outline 1 Background 2 Data Sets 3 Rules 4 Queries 5 Conclusion and Future Work 2 / 22
  • 3. Background Data Sets Rules Queries Conclusion and Future Work Outline 1 Background 2 Data Sets 3 Rules 4 Queries 5 Conclusion and Future Work 3 / 22
  • 4. Background Data Sets Rules Queries Conclusion and Future Work Backround Geospatial data are increasingly available on the Web, e.g. Geonames and LinkedGeoData Many real-world applications are built on top of data sets that contain geospatial information Integration of application data with external geospatial data becomes a popular topic 4 / 22
  • 5. Background Data Sets Rules Queries Conclusion and Future Work Backround Data can be modeled in different paradigms Relational Widely used for relational DBs and KBs, representing information in classical logic Object-centered Each object is represented by a unique Object IDentifier (OID) typed by a class and described by an unordered collection of slots, each being a pair of a name and a filler Integration needs cross-paradigm transformation, which can be expressed in the object-relational rule language PSOA RuleML 5 / 22
  • 6. Background Data Sets Rules Queries Conclusion and Future Work PSOA RuleML Integrates relational and object-oriented modeling Generalizes RIF-BLD, F-logic and POSL Uses positional-slotted object-applicative (psoa) terms General case: o # f([t1,1 ... t1,n1 ] ... [tm,1 ... tm,nm ] p1->v1 ... pk->vk) Special cases: o # f(t1 ... tn p1->v1 ... pk->vk) o # f(t1 ... tn) o # f( p1->v1 ... pk->vk) o # f 6 / 22
  • 7. Background Data Sets Rules Queries Conclusion and Future Work Outline 1 Background 2 Data Sets 3 Rules 4 Queries 5 Conclusion and Future Work 7 / 22
  • 8. Background Data Sets Rules Queries Conclusion and Future Work Data Sets Two relational data sets and one object-centered data set, expressed in PSOA RuleML Relational data set of house rental information ex:HouseRentalInfo(1 "35 Routliffe Lane" "Toronto" "ON" "CA" 3 2500 "False"^^xs:boolean) ex:HouseRentalInfo(2 "42 Frey Crescent" "Toronto" "ON" "CA" 2 900 "True"^^xs:boolean) Columns: ref number, street, city, province, country, number of bedrooms, price, furnished 8 / 22
  • 9. Background Data Sets Rules Queries Conclusion and Future Work Data Sets Relational data set containing addresses and their GPS coordinates gc:Geocode(43.778267 -79.426723 "35 Routliffe Lane" "Toronto" "ON" "CA") gc:Geocode(43.74242 -79.291529 "42 Frey Crescent" "Toronto" "ON" "CA") Columns: latitude, longitude, street, city, province, country Object-centered data set consisting of geospatial features (Using Geonames vocabulary) Sample fact: <http://sws.geonames.org/501324/>#gn:Feature( gn:name->"Canadian Tire" gn:featureCode->gn:S.RET geo:lat->43.7 geo:long->-79.1) 9 / 22
  • 10. Background Data Sets Rules Queries Conclusion and Future Work Outline 1 Background 2 Data Sets 3 Rules 4 Queries 5 Conclusion and Future Work 10 / 22
  • 11. Background Data Sets Rules Queries Conclusion and Future Work Hierarchy of Geospatial Entities gr:SubwayStation##gr:GeoEntity gr:Restaurant##gr:GeoEntity gr:Store##gr:GeoEntity gr:House##gr:GeoEntity gr:HouseForRent##gr:House gr:GeoEntity class denotes all geospatial entities that can be located Every gr:GeoEntity-typed object has a slot gr:coord for the precise coordinates of its centroid 11 / 22
  • 12. Background Data Sets Rules Queries Conclusion and Future Work Integration Rules Extract Address Information Forall ?Key ?Name ?Phone ?Street ?City ?Prov ?Country ?PostCode ?Addr ( Exists ?Addr ( And(gr:HouseRentID(?RefNo)#gr:HouseForRent( ?Bedrooms ?Price ?Furnished gr:addr->?Addr) ?Addr#gr:Address(gr:street->?Street gr:city->?City gr:prov->?Prov gr:country->?Country)) ) :- ex:HouseRentalInfo(?RefNo ?Street ?City ?Prov ?Country ?Bedrooms ?Price ?Furnished) ) 12 / 22
  • 13. Background Data Sets Rules Queries Conclusion and Future Work Integration Rules Enrich each GeoEntity with its coordinates, by retrieving the coordinates from the gc:Geocode relation using its address Forall ?O ?Ad ?Lat ?Long ?Street ?City ?Prov ?Country ( ?O#gr:GeoEntity(gr:coord->gr:Point(?Lat ?Long)) :- And(?O#gr:GeoEntity(gr:addr->?Ad) ?Ad#gr:Address(gr:street->?Street gr:city->?City gr:prov->?Prov gr:country->?Country) gc:Geocode(?Lat ?Long ?Street ?City ?Prov ?Country)) ) 13 / 22
  • 14. Background Data Sets Rules Queries Conclusion and Future Work Integration Rules Extract information from the object-centered data set Forall ?O ?Name ?Lat ?Long ( ?O#gr:GeoEntity(gr:name->?Name gr:coord->gr:Point(?Lat ?Long)) :- ?O#gn:Feature(gn:name->?Name geo:lat->?Lat geo:long->?Long) ) 14 / 22
  • 15. Background Data Sets Rules Queries Conclusion and Future Work Integration Rules Map feature codes in the object-centered data set Forall ?O ( ?O#gr:SubwayStation :- ?O#gn:Feature(gn:featureCode->gn:S.MTRO) ) Forall ?O ( ?O#gr:Restaurant :- ?O#gn:Feature(gn:featureCode->gn:S.REST) ) Forall ?O ( ?O#gr:Store :- ?O#gn:Feature(gn:featureCode->gn:S.RET) ) 15 / 22
  • 16. Background Data Sets Rules Queries Conclusion and Future Work Rules Inferencing Geospatial Relationships Derive a GeoEntity ?O is in an ?Area by composing the slot gr:coord and the gr:RCCProperPartOf relation Forall ?O ?Ad ?Pt ?Area ( ?O#gr:GeoEntity(gr:in->?Area) :- And( ?O#gr:GeoEntity(gr:coord->?Pt) gr:RCCProperPartOf(?Pt ?Area) ) ) 16 / 22
  • 17. Background Data Sets Rules Queries Conclusion and Future Work Rules Inferencing Geospatial Relationships Derive gr:RCCProperPartOf between a point and a box, defined by its minimum latitude, minimum longitude, maximum latitude, and maximum longitude, through arithmetic computation Forall ?Lat ?Long ?LatMin ?LongMin ?LatMax ?LongMax ( gr:RCCProperPartOf(gr:Point(?Lat ?Long) gr:Box(?LatMin ?LongMin ?LatMax ?LongMax)) :- And ( External(pred:numeric-greater-than-or-equal(?Lat ?LatMin)) External(pred:numeric-greater-than-or-equal(?Long ?LongMin)) External(pred:numeric-less-than-or-equal(?Lat ?LatMax)) External(pred:numeric-less-than-or-equal(?Long ?LongMax)) ) ) 17 / 22
  • 18. Background Data Sets Rules Queries Conclusion and Future Work Rules Inferencing Geospatial Relationships Derive the distance (measured in km) of ?O1 and ?O2 to be less or equal than ?Distance, used an external function gr:distanceLessEqual Forall ?Lat1 ?Long1 ?Lat2 ?Long2 ?Distance ?Name ?G ?F ( gr:inDistance(?O1 ?O2 ?Distance) :- And( ?O1#gr:GeoEntity(gr:coord->gr:Point(?Lat1 ?Long1)) ?O2#gr:GeoEntity(gr:coord->gr:Point(?Lat2 ?Long2)) External( gr:distanceLessEqual(?Lat1 ?Long1 ?Lat2 ?Long2 ?Distance))) ) 18 / 22
  • 19. Background Data Sets Rules Queries Conclusion and Future Work Outline 1 Background 2 Data Sets 3 Rules 4 Queries 5 Conclusion and Future Work 19 / 22
  • 20. Background Data Sets Rules Queries Conclusion and Future Work Queries Look for certain type of geospatial entities in a region and their addresses And(?H#gr:HouseForRent(gr:in->gr:Box(43 -80 44 -79) gr:addr->?Addr) ?Addr#gr:Address(gr:street->?Street)) Look for all geospatial entities near a specific entity All stores within 5km of the house with reference number 2: And(?S#gr:Store(gr:name->?Name) gr:inDistance(gr:HouseRentID(2) ?S 5)) All houses within 2km of the subway station named "Spadina" And(?S#gr:SubwayStation(gn:name->"Spadina") ?H#gr:HouseForRent gr:inDistance(?H ?S 2)) 20 / 22
  • 21. Background Data Sets Rules Queries Conclusion and Future Work Outline 1 Background 2 Data Sets 3 Rules 4 Queries 5 Conclusion and Future Work 21 / 22
  • 22. Background Data Sets Rules Queries Conclusion and Future Work Conclusion and Future Work Demonstrate the usefulness of PSOA rules for the integration of geospatial data modeled in different paradigms A similar approach can be applied to enrich other data sets containing address information Future work Expand KB with required ground facts imported from a relational and/or graph database Evaluate reasoning performance on expanded KB 22 / 22