Re: Re: rdf in pear .. here we go
| From: | Davey | Date: | Fri, 21 Nov 2003 17:50:21 +0000 |
| Subject: | Re: Re: rdf in pear .. here we go | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23802@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
<snip>
Yes, can you ask?I think perhaps we should remove the Object class, it really does nothing but get *one* method inherited and that method gets overloaded anyways.Yeah this one could be done away with. Its just an interface .. dunno if they have elaborate plans for it though.
Ok here is my class tree. Remember that all underscores map to a "/" in the file system. So Foo_Bar will be Foo/Bar.php in the filesystem. Here is a class tree I quickly wipped up: Base Package: RDFLooks nice, but can you update and put in the XML stuff after what we spoke about on IRC?o RDF_Object o RDF_Node o RDF_Resource o RDF_BlankNode o RDF_Literal o RDF_Model o RDF_DbModel o RDF_MemModel o RDF_DbStore o RDF_Statement o RDF_Parser (*) o RDF_Serializer (*)Subpackage: RDF_RDQLo RDF_RDQL_Engine + RDF_RDQL_DbEngine + RDF_RDQL_MemEngine o RDF_RDQL_Parser o RDF_RDQL_ResultIteratorSubpackage: RDF_N3o RDF_N3_Parser o RDF_N3_SerializerSubpackage: RDF_NTripleo RDF_NTriple_SerializerSubpackage: RDF_Utilo RDF_UtilSubpackage: RDF_StatementIteratoro RDF_StatementIterator(*) I did not introduce an XML here because I felt this is not standard. As far as I know XML is the "default" serialization format and it is called RDF. So yes this would change the filesystem structure.
So what would be the list of changes now then? 1) clean up the code to be PEAS CS compatible - fix whitespaces, brackets etc -> code beautifier jobs (this one they would appreciate) - fix class names (this one they are willing to accept as long as it is reverseable with a script) - fix filesystem structure (this one I didn't not talk to them about, but I feel this structure would actually be more clean) 2) add PEAR Error class (this one I didn't not talk to them about, but I would assume they would welcome such a class as its not like they are scared of instantiating lots of classes)OK! Now, what does being a subpackage entail? does it not get released on its own? If thats the case, RDF_Util at least should be its own package. - Davey