Hi there,
DateTimeStruct is, well, a struct. The fields are public. You could
write a builder to target that. The default constructor could be made
public. The statics are specific patterns for the XSD date/time
datatypes with validation.
DateTimeStruct represents the Date/time
I'll try DateTimeStruct again, but that basically means I need my own
copy of the class, since I currently cannot extend it to override the
private constructor?
On Thu, Nov 14, 2013 at 2:15 PM, Andy Seaborne a...@apache.org wrote:
Hi there,
DateTimeStruct is, well, a struct. The fields are
OK I was probably too quick - now I realized the syntax of xsd:gMonth
and xsd:gDay is not so simple...
On Thu, Nov 14, 2013 at 4:05 PM, Martynas Jusevičius
marty...@graphity.org wrote:
I came up with an approach that concatenates lexical values and
doesn't need Calendar or DateTimeStruct.
Not
On 14/11/13 16:42, Martynas Jusevičius wrote:
OK I was probably too quick - now I realized the syntax of xsd:gMonth
and xsd:gDay is not so simple...
:-)
http://www.w3.org/TR/xmlschema11-2/#dateTime for details.
The range of time:month is a non-negative integer so may be single
digit.
Andy, now I'm confused. Where are you looking? I checked the RDF/XML
version of Time ontology and it says:
owl:DatatypeProperty rdf:ID=year
rdfs:domain rdf:resource=#DateTimeDescription /
rdfs:range rdf:resource=xsd;gYear /
/owl:DatatypeProperty
owl:DatatypeProperty rdf:ID=month
BTW, there seems to be a related question on StackOverflow:
http://answers.semanticweb.com/questions/610/ordering-by-time-in-sparql-query
I might just give up building an xsd:dateTime and use separate
year/month/day components.
On Thu, Nov 14, 2013 at 7:26 PM, Martynas Jusevičius
On 14/11/13 18:29, Martynas Jusevičius wrote:
BTW, there seems to be a related question on StackOverflow:
http://answers.semanticweb.com/questions/610/ordering-by-time-in-sparql-query
I might just give up building an xsd:dateTime and use separate
year/month/day components.
On Thu, Nov 14, 2013
OK. One more question - most of the examples I was looking at (like
the one from StackOverflow) use simple integer values like
11^^xsd:gMonth, and not the --11^^xsd:gMonth syntax. But strictly
speaking, these are illegal values?
On Thu, Nov 14, 2013 at 9:11 PM, Andy Seaborne a...@apache.org
On 14/11/13 20:28, Martynas Jusevičius wrote:
OK. One more question - most of the examples I was looking at (like
the one from StackOverflow) use simple integer values like
11^^xsd:gMonth, and not the --11^^xsd:gMonth syntax. But strictly
speaking, these are illegal values?
Yes - strictly
Hey,
I have datetime components as 3 separate literals, with xsd:gYear,
xsd:gMonth, xsd:gDay respective datatypes. Not all mandatory - the
format can be , -MM, -MM-DD.
Now how do I combine those into a single xsd:dateTime Literal? A
concrete use case would be converting
10 matches
Mail list logo