解析日期时间时出现gephi错误
gephi error when parsing datetime
我正在尝试在 Gephi 中显示动态 .gexf 文件,其中日期时间信息采用以下格式:2001-12-07 10:06:42
不幸的是,我一直收到错误 The time interval for node XY could not be parsed. Use xsd:date, xsd:dateTime or Double formatting.
我还在 .gexf 文件中添加了以下信息:
<?xml version="1.0" encoding="UTF-8"?>
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http://www.gexf.net/1.2draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema-instance">
<graph defaultedgetype="directed" mode="dynamic" timeformat="datetime">
<attributes class="node" mode="dynamic">
<attribute id="0" title="duration" type="string"/>
<attribute id="1" title="end" type="string"/>
</attributes>
<nodes> (...)
但是解析日期时间仍然没有成功。如有任何帮助,我们将不胜感激。
如果以后有人遇到这个问题,我设法通过在日期和时间信息之间加上 T
来解决它,例如:
2001-12-07 10:06:42
改为 2001-12-07T10:06:42
(旁注:两个日期时间信息都是字符串)
我正在尝试在 Gephi 中显示动态 .gexf 文件,其中日期时间信息采用以下格式:2001-12-07 10:06:42
不幸的是,我一直收到错误 The time interval for node XY could not be parsed. Use xsd:date, xsd:dateTime or Double formatting.
我还在 .gexf 文件中添加了以下信息:
<?xml version="1.0" encoding="UTF-8"?>
<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft" xmlns:viz="http://www.gexf.net/1.2draft/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/XMLSchema-instance">
<graph defaultedgetype="directed" mode="dynamic" timeformat="datetime">
<attributes class="node" mode="dynamic">
<attribute id="0" title="duration" type="string"/>
<attribute id="1" title="end" type="string"/>
</attributes>
<nodes> (...)
但是解析日期时间仍然没有成功。如有任何帮助,我们将不胜感激。
如果以后有人遇到这个问题,我设法通过在日期和时间信息之间加上 T
来解决它,例如:
2001-12-07 10:06:42
改为 2001-12-07T10:06:42
(旁注:两个日期时间信息都是字符串)