SlideShare a Scribd company logo
1 of 22
Download to read offline
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

Viewers also liked

Doctoral Consortium@RuleML2015: Seamless Cooperation of JAVA and PROLOG for ...
Doctoral Consortium@RuleML2015:  Seamless Cooperation of JAVA and PROLOG for ...Doctoral Consortium@RuleML2015:  Seamless Cooperation of JAVA and PROLOG for ...
Doctoral Consortium@RuleML2015: Seamless Cooperation of JAVA and PROLOG for ...
RuleML
 

Viewers also liked (18)

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

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

Representing and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic WebRepresenting and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic Web
Kostis Kyzirakos
 
Simpósio Brasileiro de Banco de Dados 2005
Simpósio Brasileiro de Banco de Dados 2005Simpósio Brasileiro de Banco de Dados 2005
Simpósio Brasileiro de Banco de Dados 2005
Marcirio Chaves
 

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

Open Analytics Environment
Open Analytics EnvironmentOpen Analytics Environment
Open Analytics Environment
 
GIS_FDP_Final.pdf
GIS_FDP_Final.pdfGIS_FDP_Final.pdf
GIS_FDP_Final.pdf
 
Representing and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic WebRepresenting and Querying Geospatial Information in the Semantic Web
Representing and Querying Geospatial Information in the Semantic Web
 
VOLT - ESWC 2016
VOLT - ESWC 2016VOLT - ESWC 2016
VOLT - ESWC 2016
 
Presentation
PresentationPresentation
Presentation
 
Simpósio Brasileiro de Banco de Dados 2005
Simpósio Brasileiro de Banco de Dados 2005Simpósio Brasileiro de Banco de Dados 2005
Simpósio Brasileiro de Banco de Dados 2005
 
Querying Incomplete Geospatial Information in RDF
Querying Incomplete Geospatial Information in RDFQuerying Incomplete Geospatial Information in RDF
Querying Incomplete Geospatial Information in RDF
 
ICFHR 2014 Competition on Handwritten KeyWord Spotting (H-KWS 2014)
ICFHR 2014 Competition on Handwritten KeyWord Spotting (H-KWS 2014)ICFHR 2014 Competition on Handwritten KeyWord Spotting (H-KWS 2014)
ICFHR 2014 Competition on Handwritten KeyWord Spotting (H-KWS 2014)
 
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
Automatic Spatio-temporal Indexing to Integrate and Analyze the Data of an Or...
 
Poster Final
Poster FinalPoster Final
Poster Final
 
rworldmap: A New R package for Mapping Global Data
rworldmap: A New R package for Mapping Global Datarworldmap: A New R package for Mapping Global Data
rworldmap: A New R package for Mapping Global Data
 
Amin tayyebi: Big Data and Land Use Change Science
Amin tayyebi: Big Data and Land Use Change ScienceAmin tayyebi: Big Data and Land Use Change Science
Amin tayyebi: Big Data and Land Use Change Science
 
How Do Gain and Discount Functions Affect the Correlation between DCG and Use...
How Do Gain and Discount Functions Affect the Correlation between DCG and Use...How Do Gain and Discount Functions Affect the Correlation between DCG and Use...
How Do Gain and Discount Functions Affect the Correlation between DCG and Use...
 
Big Linked Data Federation - ExtremeEarth Open Workshop
Big Linked Data Federation - ExtremeEarth Open WorkshopBig Linked Data Federation - ExtremeEarth Open Workshop
Big Linked Data Federation - ExtremeEarth Open Workshop
 
Geocoding for beginners
Geocoding for beginnersGeocoding for beginners
Geocoding for beginners
 
Benchmarking Link Discovery Systems for Geo-Spatial Data - BLINK ISWC2017.
Benchmarking Link Discovery Systems for Geo-Spatial Data - BLINK  ISWC2017. Benchmarking Link Discovery Systems for Geo-Spatial Data - BLINK  ISWC2017.
Benchmarking Link Discovery Systems for Geo-Spatial Data - BLINK ISWC2017.
 
Improvement of Spatial Data Quality Using the Data Conflation
Improvement of Spatial Data Quality Using the Data ConflationImprovement of Spatial Data Quality Using the Data Conflation
Improvement of Spatial Data Quality Using the Data Conflation
 
Iccsa stankuteha180611
Iccsa stankuteha180611Iccsa stankuteha180611
Iccsa stankuteha180611
 
Error Tolerant Record Matching PVERConf_May2011
Error Tolerant Record Matching PVERConf_May2011Error Tolerant Record Matching PVERConf_May2011
Error Tolerant Record Matching PVERConf_May2011
 
RasterFrames - FOSS4G NA 2018
RasterFrames - FOSS4G NA 2018RasterFrames - FOSS4G NA 2018
RasterFrames - FOSS4G NA 2018
 

More from RuleML

A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
RuleML
 

More from RuleML (20)

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

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

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