Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Announcing Rule Markup Initiative
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Danja  
View profile  
 More options Nov 16 2000, 3:00 am
Newsgroups: comp.ai.shells, comp.lang.prolog
From: "Danja" <danny_avoidings...@panlanka.net>
Date: 2000/11/16
Subject: Re: Announcing Rule Markup Initiative
A little while ago I wrote an expert system for the Palm, using XML to hold
the knowledge bases. I've put an example and the dtd I used below. I worked
for a while on a more generalized version, which I intended to publish as a
proposed generic schema, but paid work got in the way. Nothing new under the
sun, as they say. Thought you might be interested.

Cheers,

Danny.

----------------------------------------------

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE domain SYSTEM "kex.dtd">

<domain name="Test Data">

<!-- *** facts *** -->

<fact goal="true">Stone</fact>

<fact goal="true">Helicopter</fact>

<fact goal="true">Bird</fact>

<fact goal="true">Mouse</fact>

<fact question="true">Is it alive</fact>

<fact question="true">Can it fly</fact>

<fact>alive</fact>

<!-- *** rules *** -->

<rule>

<fact>Helicopter</fact>

<condition negated="true">alive</condition>

<condition>Can it fly</condition>

</rule>

<rule>

<fact>Stone</fact>

<condition negated="true">alive</condition>

<condition negated="true">Can it fly</condition>

</rule>

<rule>

<fact>Mouse</fact>

<condition negated="true">Can it fly</condition>

<condition>alive</condition>

</rule>

<rule>

<fact>alive</fact>

<condition>Is it alive</condition>

</rule>

</domain>

-------------------------------------------

<?xml encoding="UTF-8"?>

<!-- DTD for KVM Expert System Knowledge Base Domains -->

<!ELEMENT domain (fact+,rule+)>

<!ATTLIST domain name CDATA #REQUIRED>

<!ELEMENT fact (#PCDATA)>

<!ATTLIST fact goal (true | false) "false">

<!ATTLIST fact question (true | false) "false">

<!ATTLIST fact negated (true | false) "false">

<!ELEMENT rule (fact,condition+)>

<!ELEMENT condition (#PCDATA)>

<!ATTLIST condition negated (true | false) "false">


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google