Changeset 78

Show
Ignore:
Timestamp:
01/07/08 16:06:03 (4 years ago)
Author:
phil
Message:

fixed node create with _: n3 string

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • rdfalchemy/trunk/rdfalchemy/rdfalchemy.py

    r77 r78  
    200200            self.resUri=URIRef(resUri[1:-1]) 
    201201        elif resUri.startswith("_:"): 
    202             self.resUri=BNode(resUri[1:-1]) 
     202            self.resUri=BNode(resUri[2:]) 
    203203        else: 
    204204            raise AttributeError("cannot construct rdfObject from %s"%(str(resUri))) 
     
    234234            raise LookupError("%s = %s not found"%(key,value)) 
    235235    get_by=classmethod(get_by) 
     236    #short term hack.  Need to go to a sqlalchemy 0.4 style query method 
     237    query_get_by=get_by 
    236238         
    237239    def filter_by(cls, **kwargs):