OWLQL - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

OWLQL

Description:

If C1 is a Seafood Course and W1 is a drink of C1, what color is W1? ... a mechanism to apply such a filter, but can be included by using KIF argument. ... – PowerPoint PPT presentation

Number of Views:52
Avg rating:3.0/5.0
Slides: 13
Provided by: veli2
Category:
Tags: owlql | kif

less

Transcript and Presenter's Notes

Title: OWLQL


1
OWL-QL
  • Veli BIÇER

2
Agenda
  • OWL-QL
  • Basic Queries
  • Paths
  • Using OWL-QL with OWL-S ontology
  • Filters

3
OWL-QL
  • a query language for OWL
  • based on DQL (DAML Query Lang.)
  • supports query-answering dialogues

4
Basic Queries
  • ltowl-qlquerygt lt/owl-qlquerygt
  • Premise Pattern
  • Query Pattern
  • Answer Pattern
  • Variable Pattern
  • Knowledge Base Pattern

5
Basic Queries
  • If C1 is a Seafood Course and W1 is a drink of
    C1, what color is W1?
  • P (type C1 Seafood-Course) (drink C1 W1)
  • Q (has-color W1 ?x)
  • V must-bind ?x
  • AP drink ?x Wine with Seafoood
  • KB http//somewhere.com/wine.owl
  • A drink White Wine with Seafoood
  • (ltpropertygt,ltsubjectgt,ltobjectgt)

6
Basic Queries
  • ltrdfsClass rdfID"SEAFOOD-COURSE"gt
  • ltowlsubClassOfgt
  • ltowlRestrictiongt
  • ltowlonProperty rdfresource"DRINK"/gt
  • ltowltoClassgt
  • ltowlRestrictiongt
  • ltowlonProperty rdfresource"COLOR"/gt
  • ltowlhasValue rdfresource"WHITE"/gt
  • lt/owlRestrictiongt
  • lt/owltoClassgt
  • lt/owlRestrictiongt
  • lt/owlsubClassOfgt
  • lt/rdfsClassgt

7
Basic Queries
  • in RDQL
  • Select ?x
  • Where (W1,has-color,?x)
  • (C1,drink,W1)
  • (Seafood-Course,type,C1)

8
Paths
  • ltfuncOntAirAvailabilityServices
    rdfID"THYAirAvailProfile"gt
  • ltprofileserviceCategorygt
  • ltaddParamNAICS rdfID"NAICS-category"gt
  •   ltprofilevaluegtAirline reservation
    serviceslt/profilevaluegt
  • ltprofilecodegt561599lt/profilecodegt
  • lt/addParamNAICSgt
  •   lt/profileserviceCategorygt
  • lt/funcOntAirAvailabilityServices
  • (and (type !x AirAvailServices)
  • (serviceCategory !x !y)
  • (NAICS !y !z)(code !z ?t))

9
Using OWL-QL with OWL-S ontology
  • OWL-QL query should follow the path defined in
    OWL-S service profile

10
Using OWL-QL with OWL-S ontology
  • ltfuncOntAirAvailabilityServices
    rdfID"THYAirAvailProfile"gt
  • ltprofileserviceParametergt
  • ltfuncOntQOS rdfID"qos"gt
  • ltprofileserviceParameterNamegt
  • AirQos
  • lt/profileserviceParameterNamegt
  •   ltprofilesParameter
  • rdfresource"http//.....owlQualityRatingAve
    rage" /gt
  • lt/funcOntQOSgt
  • lt/profileserviceParametergt
  • (and (type !x AirAvailabilityServices)
  • (type ?p QOS)
  • (sParameter ?p QualityRatingAverage))

11
Filters
  • In RDQL
  • Select ?resource
  • Where (?resource,age,?age)
  • AND ?age gt 24
  • In OWL-QL there is not a mechanism to apply such
    a filter, but can be included by using KIF
    argument.
  • e.g (age ?resource ?age)(gt ?age 24)

12
Thanks for your attention
  • Veli BIÇER
Write a Comment
User Comments (0)
About PowerShow.com