|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
[RFC] RDF metadata API draft[X-posted to xml-dev & bibliographic-dev; please send reply to interface-discuss] hello interface-discuss! i am currently designing an API that would be used for implementing the ODF metadata specification (part of ODF 1.2) [1]. this spec (and, consequently, this API) allows for attaching meta data in RDF (Resource Description Framework [2]) to ODF packages, and to ODF content elements. so i would be especially interested in input from people who would like to use ODF metadata: does this API do what you need? [1] http://www.oasis-open.org/committees/documents.php?wg_abbrev=office-metadata [2] http://www.w3.org/RDF/ until now, i have tried to only put in stuff that i think is really necessary. so this API is, in some sense, rather minimalistic. a major missing feature would be inference based on schemas, whether RDFS or OWL, but i am not sure whether we really need that? another missing feature would be support for transactions. that would depend on the backend anyway, and would be optional. also, note that this stuff does not pass idlc yet... oh, and please refrain from telling me i need to split this up into multiple files, i _know_ that. for some interfaces i cannot seem to come up with a name that i like. i believe naming things adequately is important for usability of the API. if someone can suggest a better name, i would be happy. note that points for which input is especially valued are conveniently marked with FIXME :) i've dumped the draft API on the OOo wiki: http://wiki.services.openoffice.org/wiki/Metadata_API regards, michael stahl -- "Name ist Schall und Rauch." -- Johann Wolfgang Goethe, "Faust: Der Tragödie erster Teil" (3457) --------------------------------------------------------------------- To unsubscribe, e-mail: interface-discuss-unsubscribe@... For additional commands, e-mail: interface-discuss-help@... |
|
|
Re: [RFC] RDF metadata API draftHi Michael,
> so i would be especially interested in input from people who would > like to use ODF metadata: does this API do what you need? I don't know :), but have some other feedback (always "IMO") - Pair< T, U > clearly belongs into css.beans (yes, that's nasty, since you need to add udkapi to your CWS then :) - css.rdf is perfectly okay for the types - I wouldn't put them below another module, finally, the interfaces can probably be used for other purposes later. - Re: "FIXME: hmmm, does it make sense to allow creating arbitrary blank nodes?" Not sure about "blank" here. Mozilla's API, which I used some year ago, has something like "createAnonymousNode", IIRC (My memory might *completely* fool me here). If that's a same as a "blank" node, then I think such a thing might be useful - at least I used anonymous nodes in my only encounter with RDF so far. - Re "FIXME: would a base RDFException make sense?" I tend to answering "no" here, since transforming the question would be "Are there use cases where a client would be interested in catching the RDFException only, without evaluating the actual derived exception?" Since *all* information in all the RDF*Exceptions is in their type, and not in their members, I suppose there are no such use cases. - RDF*Exception; If they all are in the namespace css.rdf, then the RDF in the name might be considered superfluous. For instance, the RDFRepositoryException could better be a css.rdf.(Illegal)RepositoryException, and the like. - XRDFRepository::importGraph: I'd suggest throwing a WrappedTargetException here, instead of the IOException. IMO (but that might be only me) this better separates errors in the stream usage (i.e. an externally-supplied component) from "internal" errors, and errors in the arguments. Similar for other methods of this interface. Ciao Frank -- - Frank Schönheit, Software Engineer frank.schoenheit@... - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: interface-discuss-unsubscribe@... For additional commands, e-mail: interface-discuss-help@... |
|
|
|
|
|
Re: [RFC] RDF metadata API draftStephan Bergmann wrote:
> Some more input: > >> Hi Michael, >> >>> so i would be especially interested in input from people who would >>> like to use ODF metadata: does this API do what you need? >> >> I don't know :), but have some other feedback (always "IMO") >> >> - Pair< T, U > clearly belongs into css.beans >> (yes, that's nasty, since you need to add udkapi to your CWS then :) > > Agreed, beans might be suitable. > > - Not sure if the modifying methods of XRDFNamedGraph are necessary (or > if they are only added to allow implementing XRDFRepository together > with an "alien" XRDFNamedGraph implementation; in which case some > private protocol between an XRDFRepository and the XRDFNamedGraph > objects it creates might be better)---but I am absolutely not a domain > expert with RDF. > > - I vaguely remember I had some reason to consider UNOIDL constants, > esp. "complex" ones like strings or (not even implemented) structs, as > not useful, but unfortunately cannot remember the reason any longer... In C++ they become static strings and i remember a performance issue with the static constructor. Juergen > > - Minor stylistic stuff: > -- XRDFURI vs. XRdfUri etc. (I personally prefer the latter, but the > former is also widely used). > -- If you are in module rdf, the "RDF" in exception, interface, and > service names might be unnecessary. > > -Stephan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: interface-discuss-unsubscribe@... > For additional commands, e-mail: interface-discuss-help@... > -- Sun Microsystems GmbH Juergen Schmidt Nagelsweg 55 Technical Lead Programmability 20097 Hamburg, Germany Registered Office: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Commercial register of the Local Court of Munich: HRB 161028 Managing Directors: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Chairman of the Supervisory Board: Martin Haering --------------------------------------------------------------------- To unsubscribe, e-mail: interface-discuss-unsubscribe@... For additional commands, e-mail: interface-discuss-help@... |
|
|
|
|
|
|
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |