[XML-SIG] [ pyxml-Bugs-433738 ] Bug with RDF sample

noreply@sourceforge.net noreply@sourceforge.net
Sat, 16 Jun 2001 07:46:43 -0700


Bugs item #433738, was updated on 2001-06-16 07:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=433738&group_id=6473

Category: 4Suite
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug with RDF sample

Initial Comment:
Hello

I downloaded 4Suite v0.11.1b2 to use RDF in Python to 
specify a datamodel for a Web site. I tried the 
schema.py sample included in the distribution (for 
Python 2.1 on Windows 98) and I got the following 
Python error: Any clues ?

Traceback (most recent call last):
  File "schema.py", line 55, in ?
    SchemaDemo()
  File "schema.py", line 26, in SchemaDemo
    serializer.deserialize(m, 
schemadoc, 'http://schema.spam.com')
  File "C:\Python21\Ft\Rdf\Serializers\Dom.py", line 
239, in deserialize
    self.readObject(model, child, sourceUri)
  File "C:\Python21\Ft\Rdf\Serializers\Dom.py", line 
247, in readObject
    return self.readDescription(model, node, 
sourceUri, impliedSubjects)
  File "C:\Python21\Ft\Rdf\Serializers\Dom.py", line 
328, in readDescription
    ns = self.readPropertyElt(model, child, subjects, 
sourceUri)
  File "C:\Python21\Ft\Rdf\Serializers\Dom.py", line 
507, in readPropertyElt
    model.add(stmt)
  File "C:\Python21\Ft\Rdf\Model.py", line 108, in add
    self._schemaHandler.checkConstraints(self, stmt)
  File "c:\python21\Ft\Rdf\SchemaHandler.py", line 
301, in checkConstraints
    raise RdfsConstraintViolation
(RdfsConstraintViolation.INVALID_RANGE_FOR_PROP
ERTY, str(newStmt.object), str(newStmt.predicate))
Ft.Rdf.SchemaHandler.RdfsConstraintViolation: "http://s
chema.spam.com/#Person" i
s an invalid object for "http://www.w3.org/2000/01/rdf-
schema#subClassOf" accord
ing to range constraints.

Thanks

Best regards

Joseph Canedo

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=433738&group_id=6473