W3C home > Mailing lists > Public > www-rdf-interest@w3.org > February 2003

Re: call for alpha testers EulerSharp for dotgnu/pnet

From: Jos De_Roo <jos.deroo@agfa.com>
Date: Sun, 9 Feb 2003 17:15:02 +0100
To: "James Michael DuPont <mdupont777" <mdupont777@yahoo.com>
Cc: developers@dotgnu.org, introspectors <introspector-developers@lists.sourceforge.net>, Jos De_Roo <jos.deroo@agfa.com>, minddog@cannibutter.com, www-rdf-interest@w3.org, www-rdf-interest-request@w3.org
Message-ID: <OFF69C431C.6D6CDE1B-ONC1256CC8.00558656-C1256CC8.00594D17@agfa.be>


> > great, I look forward to the results!
> > our current Euler.cs runs on
> > the 1.1 beta .NET Framework redistributable dor win2k
> Yes, the problem are the the following non-standard items :
> Push in your code takes a second parameter, this is not standard.
> Pop should not be called when the stack is empty, i added in checks.

well, I've made a special
mainly for performance reasons
do you suggest other method names?

> the Datatype.IsNumeric is not standard, do you have code for that?
> Maybe you can send me the dll where it is defined?

I have to read the standard I guess...
IsNumeric is a method name I have the code for in
which basically is just
  return num[dt] != null;
or do you mean that you don't have System.Xml
e.g. XmlConvert? that would be a problem then
(at least to do RDF datatyping with XML Schema
part 2 primitive datatypes)

> The method names push and pop are uppercase and not lower.
> I have made other small changes that you can see in the source.

right, and there are more such lowercase method names

> > and runs all the tests in http://www.agfa.com/w3c/euler/etc

that should have been http://www.agfa.com/w3c/euler/etc5

> > but for the RDF parsing we use AskJena.cs which
> > is an http bridge to Jena which is running on a java VM
> that sounds interesting.
> We need to see also the good parts of the Jena API,
> what parts do you use and like?

Well, I was wrong again, we actually just do
fromWeb("http://localhost/AskJena?fromWeb=" +
and the AskJena is in Java (remarkable how I forgot that)
Anyhow, the Jena part (actually the Jena 2 pre-alpha)
that we use is just

==== http://www.agfa.com/w3c/euler/AskJena.java
// $Id: AskJena.java,v 1.5 2002/12/17 11:41:40 amdus Exp $
// PxButton | build | javac -O *.java |

import java.io.*;
import java.net.*;
import com.hp.hpl.jena.model.*;
import com.hp.hpl.jena.mem.*;

public class AskJena {

  public static final String fromWeb(String in) {
    if (in.endsWith(".n3")) in = in.substring(0, in.length() - 3) + ".rdf";
    if (Euler.trace || Euler.debug) System.err.println("(" + Euler.engine +
") AskJena " + in);
    Model m = new ModelMem();
    try {
      URL url = new URL(in);
    catch (Exception e) {
      try {
        m.read(new FileReader(in), "");
      catch (Exception ex) {
        return "\n";
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    try {
      m.write(new PrintWriter(baos), "N3");
    catch (Exception e) {
      return "\n";
    return baos.toString();

this was made to have something but
maybe we better look for a webservice solution

-- ,
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
Received on Sunday, 9 February 2003 11:15:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:44 UTC