Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant RDF datatype classes? #20

Open
patrickwestphal opened this issue Aug 26, 2014 · 0 comments
Open

Redundant RDF datatype classes? #20

patrickwestphal opened this issue Aug 26, 2014 · 0 comments
Assignees
Labels

Comments

@patrickwestphal
Copy link
Member

In the lib/rdf/rdf_datatype/ directory there are the following classes defined:

«abstract»
RdfDatatype
getUri()
unparse()
parse()
BaseDatatype (extends RdfDatatype)
getUri()
unparse(value)
parse(str)
toString()
RdfDatatypeBase (extends RdfDatatype)
getUri()
RdfDatatypeLabel (extends RdfDatatypeBase)
parse(str)
unparse(val)

For me it seems like either RdfDatatypeBase and RdfDatatypeLabel or BaseDatatype is needed. Is there a reason for having all of them?
Moreover I'm wondering if we really need this class hierachy here, since it (IMHO) only complicates things unnecessarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants