[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[CASHeW-s-editor-patches] FYI: RDF #09
From: |
Andrew John Hughes |
Subject: |
[CASHeW-s-editor-patches] FYI: RDF #09 |
Date: |
Mon, 18 Apr 2005 01:53:58 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
I'm committing the attached patch to finish up the handling
of basic triples in RDF. With this patch, most shortcuts
should be handled. Testing shows that it can handle examples
1 to 7 of the RDF XML specification (which follows on from the
primer, oddly enough) and the music OWL ontology produced
by myself and Simon. The main remaining areas are collections
and parse types.
Changelog:
2005-04-18 Andrew John Hughes <address@hidden>
* docs/api/.cvsignore:
Ignore html directory and create_html marker.
* lib/.cvsignore:
Ignore new jar files.
* src/nongnu/cashews/commons/Pair.java:
(hashCode()): Removed dumb use of superclass hashCode as this
is java.lang.Object.
* src/nongnu/cashews/commons/PairStack.java:
Stack class to handle maps containing pairs.
(PairStack()): New constructor.
(peek()): New method.
(pop()): New method.
(push(A,B)): New method.
(search(A,B)): New method.
* src/nongnu/cashews/rdf/RDFHandler.java:
(subjectURI): New field.
(PairStack<Subject,Predicate>): New field.
(Set<String>): New field.
(RDFHandler(java.util.logging.Handler)): Initialize new variables.
(startElement(String,String,String,org.xml.sax.Attributes)):
Handle maintaining subjectURI and nested subjects.
(handleAttributes(PairMap<String,String,String>)):
Remove attributes from set when parsed, generate blank node ids
when not present, and add triples for property attributes.
(setSubjectType(String)): Documented.
(generateBlankID()): New method to generate a blank node ID.
(endSubject()): Handle the end of a subject node, including
nested nodes.
* src/nongnu/cashews/rdf/XMLParser.java:
(main(String[])): Expect URIs rather than files at command line.
* src/nongnu/cashews/rdf/Parser.java:
(man(String[])): Likewise.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
rdf-09.diff
Description: Text document
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [CASHeW-s-editor-patches] FYI: RDF #09,
Andrew John Hughes <=