10.07.2015 Views

Rules & Ontologies OWL 2 RL & SWRL Description Logic ... - LPIS

Rules & Ontologies OWL 2 RL & SWRL Description Logic ... - LPIS

Rules & Ontologies OWL 2 RL & SWRL Description Logic ... - LPIS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RIF – use of frames4-49<strong>Rules</strong> & <strong>Ontologies</strong>• An actor is a movie star ifhe has starred in more than3 successful movies,produced in a span of atleast 5 years.• A film is consideredsuccessful if it has receivedcritical acclaim (e.g. rating>8) or was financiallysuccessful (produced>$100M in ticket sales).• These rules should beevaluated against theDBpedia data set.A Semantic Web Primer, 3rd Edition4-50• The use of frames has a long tradition in OOlanguages and knowledge representation,– Has also been prominent in rule languages (e.g.F<strong>Logic</strong>).• The basic idea is to represent objects asframes, and their properties as slots.– E.g., a class professor with slots name, office, phone,department etc.oid[slot1 -> value1 … slotn -> valuen]<strong>Rules</strong> & <strong>Ontologies</strong>A Semantic Web Primer, 3rd Edition4-51Compatibility with RDF and <strong>OWL</strong>• The basic idea of combining RIF with RDF isto represent RDF triples using RIF frameformulas• A triple s p o is represented as s[p -> o]• Exampleex:GoneWithTheWind ex:FilmYear ex:1939ex:GoneWithTheWind[ex:FilmYear -> ex:1939]<strong>Rules</strong> & <strong>Ontologies</strong>A Semantic Web Primer, 3rd Edition4-52Inference in RIF and RDF• RIF rule: the Hollywood Production Code was in placebetween 1930 and 1968Group(Forall ?Film (If And( ex:?Film[ex:Year -> ?Year]External(pred:dateGreaterThan(?Year 1930))External(pred:dateGreaterThan(1968 ?Year)))Then ?Filmex:HollywoodProductionCode -> ex:True]))• Conclusionex:GoneWithTheWind[ex:HollywoodProductionCode -> ex:True]RIFex:GoneWithTheWind ex:HollywoodProductionCode ex:TrueRDF <strong>Rules</strong> & <strong>Ontologies</strong> A Semantic Web Primer, 3rd Edition13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!