Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Semantic Web Rule Language

From Wikipedia, the free encyclopedia
Language to express rules and logic with semantic web

TheSemantic Web Rule Language (SWRL) is a proposed language for theSemantic Web that can be used to express rules as well as logic, combiningOWL DL or OWL Lite with a subset of theRule Markup Language (itself a subset ofDatalog).[1]

The specification was submitted in May 2004 to theW3C by theNational Research Council of Canada, Network Inference (since acquired bywebMethods), andStanford University in association with the Joint US/EU ad hoc Agent Markup Language Committee. The specification was based on an earlier proposal for an OWL rules language.[2][3]

SWRL has the full power of OWL DL, but at the price of decidability and practical implementations.[4]However, decidability can be regained by restricting the form of admissible rules, typically by imposing a suitable safety condition.[5]

Rules are of the form of an implication between an antecedent (body) and a consequent (head). The intended meaning can be read as: whenever the conditions specified in the antecedent hold, then the conditions specified in the consequent must also hold.

Example

[edit]

Human Readable Syntax

[edit]
hasParent(?x1,?x2) ∧ hasBrother(?x2,?x3) ⇒ hasUncle(?x1,?x3)

XML Concrete Syntax

[edit]

TheXML Concrete Syntax is a combination of theOWL Web Ontology Language XML Presentation Syntax with theRuleML XML syntax.

<ruleml:imp><ruleml:_rlabruleml:href="#example1"/><ruleml:_body><swrlx:individualPropertyAtomswrlx:property="hasParent"><ruleml:var>x1</ruleml:var><ruleml:var>x2</ruleml:var></swrlx:individualPropertyAtom><swrlx:individualPropertyAtomswrlx:property="hasBrother"><ruleml:var>x2</ruleml:var><ruleml:var>x3</ruleml:var></swrlx:individualPropertyAtom></ruleml:_body><ruleml:_head><swrlx:individualPropertyAtomswrlx:property="hasUncle"><ruleml:var>x1</ruleml:var><ruleml:var>x3</ruleml:var></swrlx:individualPropertyAtom></ruleml:_head></ruleml:imp>

RDF Concrete Syntax

[edit]

It is straightforward to provide such anRDF concrete syntax for rules, but the presence of variables in rules goes beyond the RDF Semantics.[6] Translation from the XML Concrete Syntax toRDF/XML could be easily accomplished by extending theXSLT transformation for the OWL XML Presentation syntax.

Implementations

[edit]

Caveat: Reasoners do not support the full specification because the reasoning becomes undecidable. There can be three types of approach:

  1. translate SWRL into First Order Logic (Hoolet) and demonstrate reasoning tasks with a theorem prover;
  2. translate OWL-DL into rules and give the rules to a forward chaining engine (Bossam) (this approach cannot cover the full expressivity of OWL-DL due to many incompatibilities between Description Logic and Horn Rule formalisms)
  3. expand an existing OWL-DL reasoner based on the tableaux algorithm (Pellet).
  4. Protégé 4.2 includes a Rules view in its Ontology Views that supports SWRL rules.
  5. For older versions of Protégé,SWRLTab is an extension that supports editing and execution of SWRL rules.[1]
  6. R2ML (REWERSE Rule Markup Language) supports SWRL.[2]
  7. Bossam, aforward chaining rule engine supports SWRL.[3]
  8. Hoolet, an implementation of an OWL-DL reasoner that uses a first order prover supports SWRL.[4]
  9. Pellet, an open-source Java OWL DL reasoner has SWRL-support.[5]
  10. KAON2 is an infrastructure for managing OWL-DL, SWRL, and F-Logic ontologies.[6]Archived 6 January 2006 at theWayback Machine
  11. RacerPro, supports the processing of rules in a SWRL-based syntax by translating them into nRQL rules[7]
  12. Stardog is an RDF database ortriplestore that rewrites queries to answer questions using SWRL inferences.[8]
BossamHooletPellet
SWRL/OWLX ParserYes??
SWRL/RDF ParserYes?Yes
Math Built-InsPartial?Yes
String Built-InsPartial?Yes
Comparison Built-Ins??Yes
Boolean Built-Ins??Yes
Date, Time and Duration Built-Ins??No
URI Built-Ins??Yes
Lists Built-Ins??No
LicensingFree/closed-sourceFree/open-sourceFree/open-source

Comparison with Description Logic Programs

[edit]

Description Logic Programs (DLPs) are another proposal for integrating rules and OWL.[7]Compared with Description Logic Programs, SWRL takes a diametrically opposed integration approach. DLP is the intersection ofHorn logic and OWL, whereas SWRL is (roughly) the union of them.[4] In DLP, the resultant language is a very peculiar looking description logic and rather inexpressive language overall.[4]

Future Directions and Applications of SWRL

[edit]
icon
This sectionmay incorporate text from alarge language model. It may includehallucinated information,copyright violations, claims notverified in cited sources,original research, orfictitious references. Any such material should beremoved, and content with anunencyclopedic tone should be rewritten.(September 2025) (Learn how and when to remove this message)

As the Semantic Web continues to evolve, the role of SWRL in enabling automated reasoning and decision-making processes will likely expand. While current implementations, such as those found in Protégé and Pellet, provide significant capabilities, ongoing advancements in artificial intelligence and knowledge representation may lead to even more sophisticated reasoning engines that better handle the computational complexities introduced by SWRL. Furthermore, as data integration across diverse domains becomes increasingly critical, SWRL could play a pivotal role in enhancing interoperability between systems that utilize OWL ontologies. The combination of rules with ontologies, as facilitated by SWRL, remains a powerful mechanism for drawing inferences and uncovering relationships in large, distributed datasets, offering broad applicability in fields such as healthcare, finance, and semantic data analytics.[8]

See also

[edit]

References

[edit]
  1. ^Horrocks, Ian; Patel-Schneider, Peter F.; Boley, Harold; Tabet, Said; Grosof, Benjamin; Dean, Mike (21 May 2004)."SWRL: A Semantic Web Rule Language Combining OWL and RuleML".W3C. Retrieved21 December 2017.
  2. ^Ian Horrocks; Peter F. Patel-Schneider (2004)."A Proposal for an OWL Rules Language"(PDF).Proc. of the Thirteenth International World Wide Web Conference (WWW 2004). ACM. pp. 723–731. Retrieved22 May 2014.
  3. ^Ian Horrocks; Peter F. Patel-Schneider; Sean Bechhofer; Dmitry Tsarkov (2005)."OWL Rules: A Proposal and Prototype Implementation"(PDF).Journal of Web Semantics.3 (1). Elsevier:23–40.doi:10.1016/j.websem.2005.05.003. Retrieved22 May 2014.
  4. ^abcBijan Parsia; et al. (2005)."Cautiously Approaching SWRL"(PDF). Retrieved29 July 2006.{{cite journal}}:Cite journal requires|journal= (help)
  5. ^Boris Motik; Ulrike Sattler; Rudi Studer (2005)."Query Answering for OWL-DL with Rules"(PDF).Journal of Web Semantics.3 (1). Elsevier:41–60.doi:10.1016/j.websem.2005.05.001. Retrieved22 May 2014.
  6. ^Mei, Jing; Harold Boley (2006)."Interpreting SWRL Rules in RDF Graphs"(PDF).Electronic Notes in Theoretical Computer Science.151 (2). Elsevier:53–69.doi:10.1016/j.entcs.2005.07.036.S2CID 14325289. Retrieved29 July 2006.
  7. ^Benjamin N. Grosof; Ian Horrocks; Raphael Volz; Stefan Decker (2003)."Description Logic Programs: Combining Logic Programs with Description Logic"(PDF).Proc. of the Twelfth International World Wide Web Conference (WWW 2003). ACM. pp. 48–57. Retrieved22 May 2014.
  8. ^"OWL - Semantic Web Standards".www.w3.org. Retrieved13 September 2024.

External links

[edit]
Background
Sub-topics
Applications
Related topics
Standards
Syntax and supporting technologies
Schemas, ontologies and rules
Semantic annotation
Common vocabularies
Microformat vocabularies
Retrieved from "https://en.wikipedia.org/w/index.php?title=Semantic_Web_Rule_Language&oldid=1333679989"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp