[Sparql4j-devel] M1 reached?
Status: Pre-Alpha
Brought to you by:
jsaarela
|
From: Samppa S. <sam...@pr...> - 2006-01-12 15:13:33
|
Hi all,
I just committed SparqlPreparedStatement implementation, it uses lone
questionmarks as parameter placeholders, e.g.
select * where {?subject rdfs:label ?; rdfs:comment ?comment . filter
?comment < ? .}
has 2 parameter slots.
It uses quite naive parsing that differs from the spec at least in IRI
handling, by disallowing IRIs starting with a digit, ? or " to avoid
mixing operators with IRIs. I don't see this as a grave limitation.
It implements most of the PreparedStatement.set*(int, *) methods.
Date/time handling is one to beaware of: for simplicity I
process/normalize all time-related values using UTC-time zone. It would
probably be better to use the provided Calendar or JVM default to
process the time zones but this is a bit more complex to implement since
XSD time (zone) format is not directly supported by the
SimpleDateformat. Any opinions about this: should setDate/Time/Timestamp
retain the given or implicit time zone?
What more is needed for M1? System/integration tests? ResultSet handler
for RDF/XML?
Tests include one system/integration test that uses server URL defined
in test/conf/connection.properties (note: test/conf needs to be in
classpath). It just addresses (?s ?p ?o) -query, checks headers and
scrolls through the results.
We should discuss about how to actually implement the system/integration
tests. How to ensure that the server contains some particular data set
to query over and validate the results?
Br
Samppa
--
Samppa Saarela <samppa.saarela at profium.com> Profium, Lars Sonckin kaari 12, 02600 Espoo, Finland Tel. +358 (0)9 855 98 000 Fax. +358 (0)9 855 98 002 Mob. +358 (0)41 515 1412 Internet: http://www.profium.com
|