The following patch applied to svn revision 83 of foresite-python
enables it to work with rdflib 3.1.
Note that the foresite library functionality was not extensively
evaluated, but the tests pass and everything seems to work fine for me
on OS X python 2.7 with rdflib 3.1 and rdfextras installed with
easy_install.
+
class OREParser(object):
# Take some data and produce objects/graph
def __init__(self):
Index: foresite/README.txt
===================================================================
--- foresite/README.txt (revision 83)
+++ foresite/README.txt (working copy)
@@ -23,9 +23,9 @@
And retrieve properties:
On Tue, Aug 9, 2011 at 9:52 AM, Dave V <dave.viegl...@gmail.com> wrote: > The following patch applied to svn revision 83 of foresite-python > enables it to work with rdflib 3.1.
> Note that the foresite library functionality was not extensively > evaluated, but the tests pass and everything seems to work fine for me > on OS X python 2.7 with rdflib 3.1 and rdfextras installed with > easy_install.
> @@ -329,7 +330,7 @@ > for m in mytypes: > if m != namespaces['ore']['Aggregation'] and \ > m in atypes: > - possAlt.append(r.uri) > + possAlts.append(r.uri)
> if not altDone and possAlts: > # XXX more intelligent algorithm here > Index: foresite/parser.py > =================================================================== > --- foresite/parser.py (revision 83) > +++ foresite/parser.py (working copy) > @@ -3,12 +3,19 @@ > from utils import namespaces, OreException, unconnectedAction, > protocolUriRe > from lxml import etree > from xml.dom import minidom > -from rdflib import StringInputSource, URIRef, plugin, syntax > +from rdflib.parser import StringInputSource > +from rdflib import URIRef, plugin, query #, syntax > +from rdflib.parser import Parser
> from rdflib.util import uniq > from rdflib.exceptions import Error > -from rdflib.syntax.xml_names import split_uri > +#from rdflib.syntax.xml_names import split_uri
> from xml.sax.saxutils import quoteattr, escape
> -- > You received this message because you are subscribed to the Google Groups "foresite" group. > To post to this group, send an email to foresite@googlegroups.com. > To unsubscribe from this group, send email to foresite+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/foresite?hl=en-GB.
> Would you prefer to just have commit access to the svn rather than > sending patches? :)
> Rob
> On Tue, Aug 9, 2011 at 9:52 AM, Dave V <dave.viegl...@gmail.com> wrote: >> The following patch applied to svn revision 83 of foresite-python >> enables it to work with rdflib 3.1.
>> Note that the foresite library functionality was not extensively >> evaluated, but the tests pass and everything seems to work fine for me >> on OS X python 2.7 with rdflib 3.1 and rdfextras installed with >> easy_install.
>> @@ -329,7 +330,7 @@ >> for m in mytypes: >> if m != namespaces['ore']['Aggregation'] and \ >> m in atypes: >> - possAlt.append(r.uri) >> + possAlts.append(r.uri)
>> if not altDone and possAlts: >> # XXX more intelligent algorithm here >> Index: foresite/parser.py >> =================================================================== >> --- foresite/parser.py (revision 83) >> +++ foresite/parser.py (working copy) >> @@ -3,12 +3,19 @@ >> from utils import namespaces, OreException, unconnectedAction, >> protocolUriRe >> from lxml import etree >> from xml.dom import minidom >> -from rdflib import StringInputSource, URIRef, plugin, syntax >> +from rdflib.parser import StringInputSource >> +from rdflib import URIRef, plugin, query #, syntax >> +from rdflib.parser import Parser
>> from rdflib.util import uniq >> from rdflib.exceptions import Error >> -from rdflib.syntax.xml_names import split_uri >> +#from rdflib.syntax.xml_names import split_uri
>> from xml.sax.saxutils import quoteattr, escape
>> -- >> You received this message because you are subscribed to the Google Groups "foresite" group. >> To post to this group, send an email to foresite@googlegroups.com. >> To unsubscribe from this group, send email to foresite+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/foresite?hl=en-GB.
> -- > You received this message because you are subscribed to the Google Groups "foresite" group. > To post to this group, send an email to foresite@googlegroups.com. > To unsubscribe from this group, send email to foresite+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/foresite?hl=en-GB.