简体   繁体   English

Rowlex- dateTime检索问题

[英]Problem with Rowlex- dateTime retrieving

I've encountered a problem in Rowlex recently. 我最近在Rowlex中遇到了一个问题。 It is related to datetime retrieving. 它与日期时间检索有关。
In my RDF file, I have two instances like this: 在我的RDF文件中,我有两个这样的实例:

<Ontologyowl:Note rdf:about="http://www.faraway_learning.edu/ehsanm/not106179">
    <Ontologyowl:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Test1</Ontologyowl:title>
    <Ontologyowl:dateOfCreation rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2009-03-28T20:58:31Z</Ontologyowl:dateOfCreation>
    <Ontologyowl:relatedToClass rdf:resource="clas000021"/>
    <Ontologyowl:ranking_general_stuNum rdf:datatype="http://www.w3.org/2001/XMLSchema#int">0</Ontologyowl:ranking_general_stuNum>
    <Ontologyowl:ranking_general_tchNum rdf:datatype="http://www.w3.org/2001/XMLSchema#int">0</Ontologyowl:ranking_general_tchNum>
    <Ontologyowl:isShared rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">True</Ontologyowl:isShared>
    <Ontologyowl:anonymousAuthor rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">False</Ontologyowl:anonymousAuthor>
</Ontologyowl:Note>
<Ontologyowl:Note rdf:about="http://www.faraway_learning.edu/ehsanm/not941065">
    <Ontologyowl:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Test 2</Ontologyowl:title>
    <Ontologyowl:dateOfCreation rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2008-09-09T13:18:35Z</Ontologyowl:dateOfCreation>
    <Ontologyowl:relatedToResource>
        <Ontologyowl:LearningResource rdf:about="res323717"/>
    </Ontologyowl:relatedToResource>
    <Ontologyowl:ranking_general_stuNum rdf:datatype="http://www.w3.org/2001/XMLSchema#int">0</Ontologyowl:ranking_general_stuNum>
    <Ontologyowl:ranking_general_tchNum rdf:datatype="http://www.w3.org/2001/XMLSchema#int">0</Ontologyowl:ranking_general_tchNum>
    <Ontologyowl:isShared rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">True</Ontologyowl:isShared>
    <Ontologyowl:anonymousAuthor rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">False</Ontologyowl:anonymousAuthor>
</Ontologyowl:Note>

and I use this code to retrieve datetime of these two instances: 并且我使用此代码来检索这两个实例的日期时间:

OwlThing[] noteThing = rdfDoc.GetIndividuals(Note.Uri, false, false, false);
    foreach (OwlThing item in noteThing)
    {
        DataRow dtRow = resultDt.NewRow();
        dtRow["uri"] = ((Note_)item).ID;
        dtRow["title"] = ((Note_)item).title.ToString();
        dtRow["date"] = (DateTime)(((Note_)item).dateOfCreation);

but, the value of part '((Note_)item).dateOfCreation' is different from the RDF value. 但是,部分'(((Note_)item).dateOfCreation')的值与RDF值不同。 For the above example they are: 对于上面的示例,它们是:

title: Test 2 标题:测试2
value: 2008-09-09T17:48:35Z 价值:2008-09-09T17:48:35Z
title: Test1 标题:Test1
value: 2009-03-29T01:28:31Z 价值:2009-03-29T01:28:31Z
alt text http://img37.imageshack.us/img37/6489/26739420.jpg 替代文字http://img37.imageshack.us/img37/6489/26739420.jpg

Am I making any mistake in this progress? 我在这个过程中犯了任何错误吗?
Thank you in advance 先感谢您

Your question does not show any inconsistency on the datetime. 您的问题在日期时间上没有任何不一致之处。 The debugger screenshot window shows exactly the same datetime as in the RdfDocument above. 调试器屏幕快照窗口显示的日期时间与上述RdfDocument中的完全相同。

However, you might experience datetime issues due to your computer's regional settings. 但是,由于计算机的区域设置,您可能会遇到日期时间问题。 If it is so, then this is a general issue that has nothing to do with ROWLEX . 如果是这样,那么这是一个与ROWLEX无关的普遍问题。 Calculating the correct datetime is not a trivial thing, it depends a lot on your region, your timezone, even on your shoesize :) 计算正确的日期时间并不是一件容易的事,它很大程度上取决于您所在的地区,您的时区,甚至取决于您的鞋尺码:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM