有没有办法在xsd:duration到xsd:SPARQL中执行转换?

时间:2017-07-08 14:16:57

标签: sparql

例如,我想将auto_increment转换为ALTER TABLE document MODIFY COLUMN document_id INT auto_increment

1 个答案:

答案 0 :(得分:1)

您可以将持续时间添加到“零”时间:

select * {
bind("PT1H5M14.000S"^^xsd:duration as ?x)
BIND("00:00:00"^^xsd:time + ?x as ?y) }