Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
Thomas Gentsch  
View profile  
 More options Oct 13 2012, 4:55 pm
From: Thomas Gentsch <t...@blue-elephant-systems.com>
Date: Sat, 13 Oct 2012 22:55:47 +0200
Local: Sat, Oct 13 2012 4:55 pm
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic

Hi Torben,

I did something similar in the past, however using a different strategy.
The whole thing basically works like this:
1) I have a C++ Prog with an embedded clips engine (and whatever
  XML/XSD handling you like)
2) when a request arrives (as XML) look into a mapping table to locate
  the matching Clips defclass (which must exist), create an instance of
  that class or locate the already existing instance based on
  identifying XML attributes
3) Map in XML attributes to Clips instance slots (this may happen
  recursively for nested XML structures which yields nested Clips
  instances) by calling message handlers
4) Let the Clips engine run
5) If done, either trigger actions from inside the Clips instances or
  query instances from the C++ prog to produce a result

This means that all the XML I/O and mapping between XML and Clips
happens mostly in the C++ code using the Clips API - except all logic in
the Clips rules itself. Once I let the engine run (step 4) the C++ prog
does not know anything what's happening in Clips. The mapping stuff was
quite complicated though.

The fundamental idea is to have an equivalent between your XSD and Clips
defclasses and map between each other. Your XML example would then be
something like
(defclass Child (is-a USER)
 ...
)
(defclass Parent (is-a USER)
  (multislot children
    (allowed-classes Child)
  )
)

and

(definstances x
  (foo of Child ...)
  (bar of Child ...)
  (parent of Parent (children [foo bar]))
  ...
)

Of course in this example, the defclasses "Parent" and "Child" are quite
static (how are sub-schema of Child named?) but you could also define a
generic
 (defclass XmlAttr (is-a USER)
   (slot name)
   (slot value)
 )
 (defclass XmlTag (is-a USER)
   (multislot children (allowed-classes XmlTag)
   (multislot attrs (allowed-classes XmlAttr)
 )
This is similar to your approach, only that the parent/child
relationship is already stored nicely as instance slots (no slot
"parent" needed).

Scalability may be an issue, especially with such a generic defclass
(and hence 1000s of instances of XmlTag) may be dangerous if you want to
combine multiple XmlTag instances (since there may be zillions of
partial matches due to all the permutations) - this will most likely a
problem with your original idea too.

Rgds,
  tge


 
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.
Nick Bassiliades  
View profile  
 More options Oct 14 2012, 2:44 am
From: Nick Bassiliades <nbass...@csd.auth.gr>
Date: Sun, 14 Oct 2012 09:44:07 +0300
Local: Sun, Oct 14 2012 2:44 am
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic
Hi Torben and all,

I have also implemented (with my students) a similar solution to Thomas',
concerning the data model mapping.
The differences are:
1) Everything is implemented in CLIPS native code and not C++.
2) There are two phases. In Phase A the DTD that validates the XML file
is loaded into CLIPS and translated into a collection of defclass
definitions.
In Phase B, the XML files is loaded and the COOL classes created in Phase A
are populated with instances that map the XML file content. The XML file
is supposed to be valid (no validation occurs).

In case you are interested I can provide the source code,
but unfortunately there is no report in English for this.

Cheers,
Nick

Στις 13/10/2012 11:55 μμ, ο/η Thomas Gentsch έγραψε:

--
**************************************************************
* Dr. Nick Bassiliades, Associate Professor                  *
* Dept. of Informatics, Aristotle University of Thessaloniki *
* 54124 Thessaloniki, Greece                                 *
*                                                            *
* Tel: +302310997913   E-mail: nbass...@csd.auth.gr          *
* Fax: +302310997913   URL: http://tinyurl.com/nbassili      *
* ========================================================== *
* LPIS (Logic Programming & Intelligent Systems) Group       *
* URL: http://lpis.csd.auth.gr/                              *
**************************************************************

 
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.
Peter Löwe  
View profile  
 More options Oct 14 2012, 4:42 am
From: "Peter Löwe" <peter.lo...@gmx.de>
Date: Sun, 14 Oct 2012 10:42:02 +0200
Local: Sun, Oct 14 2012 4:42 am
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic
Hello Nick,

it would be great if you would share the source code of your work on XML / COOL integration with the  CLIPS-comunity.

Best,
Peter

-------- Original-Nachricht --------

...

read more »


 
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.
Nick Bassiliades  
View profile  
 More options Oct 16 2012, 3:02 am
From: Nick Bassiliades <nbass...@csd.auth.gr>
Date: Tue, 16 Oct 2012 10:01:51 +0300
Local: Tues, Oct 16 2012 3:01 am
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic

Dear Peter and all,

At the following address
https://dl.dropbox.com/u/3157468/X-DEVICE.rar
please find the source code for X-DEVICE, a system
we have developed at the Department of Informatics,
Aristotle University of Thessaloniki, Greece, with
some of my students.

Unfortunately, there is no English report on this, only
a Greek BSc thesis. However, I send it too, in case you would like
to go through the XML and CLIPS code and the figure
that are in there.

In order to run the program, you have to load the batch file load-files.BAT
located the source folder.
Then, at the prompt you type

(import-XML "bibDTD.txt" "bibXML.txt")

The first argument is the DTD and the second is the XML file that conforms
to the DTD. These two files are also located in the source folder.
The system has been developed 8 years ago (2004) and since then
we did not have the chance to further develop it, so please gentle!

In case there is an interest on this, I guess I could consult on some parts
of the code, although I was mainly supervising this and not developed it
myself.

Have fun!

Cheers,
Nick

Στις 14/10/2012 11:42 πμ, ο/η "Peter Löwe" έγραψε:

...

read more »


 
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.
alexgian  
View profile  
 More options Oct 16 2012, 9:49 am
From: alexgian <alexg...@blueyonder.co.uk>
Date: Tue, 16 Oct 2012 14:49:04 +0100
Local: Tues, Oct 16 2012 9:49 am
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic

Hi Nick,

On 16 October 2012 08:01, Nick Bassiliades <nbass...@csd.auth.gr> wrote:

I have just been looking over some of your DEVICE work, and at a first
glance it looks most interesting!

> Unfortunately, there is no English report on this, only
> a Greek BSc thesis. However, I send it too, in case you would like
> to go through the XML and CLIPS code and the figure
> that are in there.

Is there a way the rest of us can get hold of this Greek BSc thesis?
Is it posted up somewhere?

Thanks


 
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.
alexgian  
View profile  
 More options Oct 16 2012, 10:18 am
From: alexgian <alexg...@blueyonder.co.uk>
Date: Tue, 16 Oct 2012 15:18:07 +0100
Local: Tues, Oct 16 2012 10:18 am
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic

Oops, thanks, found it, if it is the one by Ourania Hatzi!

On 16 October 2012 14:49, alexgian <alexg...@blueyonder.co.uk> wrote:


 
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.
Discussion subject changed to "CLIPSWin32.dll for Windows 7 64bits" by José Alexandre Matelli
José Alexandre Matelli  
View profile  
 More options Oct 17 2012, 11:06 am
From: José Alexandre Matelli <jmate...@yahoo.com.br>
Date: Wed, 17 Oct 2012 12:05:53 -0300
Local: Wed, Oct 17 2012 11:05 am
Subject: CLIPSWin32.dll for Windows 7 64bits
Hello,

I compiled the CLIPSWin32CPP C++ project in the Microsoft Visual C++
2008 and it went just fine, but I'm having a very hard time trying to
register the CLIPSWin32.dll on Windows 7 (64bits). Any suggestions?

Thanks!

Jos A. Matelli


 
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.
Discussion subject changed to "Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic" by Nick Bassiliades
Nick Bassiliades  
View profile  
 More options Oct 16 2012, 10:02 am
From: Nick Bassiliades <nbass...@csd.auth.gr>
Date: Tue, 16 Oct 2012 17:02:51 +0300
Local: Tues, Oct 16 2012 10:02 am
Subject: Re: Digest for clipsesg@googlegroups.com - 2 Messages in 1 Topic

It is inside the rar file!

???? 16/10/2012 4:49 ??, ?/? alexgian ??????:

--
**************************************************************
* Dr. Nick Bassiliades, Associate Professor                  *
* Dept. of Informatics, Aristotle University of Thessaloniki *
* 54124 Thessaloniki, Greece                                 *
*                                                            *
* Tel: +302310997913   E-mail: nbass...@csd.auth.gr          *
* Fax: +302310997913   URL: http://tinyurl.com/nbassili      *
* ========================================================== *
* LPIS (Logic Programming & Intelligent Systems) Group       *
* URL: http://lpis.csd.auth.gr/                              *
**************************************************************

 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »