chrschtt
chrschtt

Reputation: 1

how to add complex object to RDF graph using dotnetrdf?

I want to create RDF output (here shown as RDF/XML) like this: ...

<dct:temporal>
    <dct:PeriodOfTime>
        <schema:startDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-06-06T00:00:00</schema:startDate>
        <schema:endDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-09-28T00:00:00</schema:endDate>
    </dct:PeriodOfTime>
</dct:temporal>

I am using dotnetRDF and it works perfectly, however, all the other objects in my graph are simple, which is not the case here.

The object is

<dct:PeriodOfTime>
    <schema:startDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-06-06T00:00:00</schema:startDate>
    <schema:endDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-09-28T00:00:00</schema:endDate>
</dct:PeriodOfTime>

How do I use dotnetRDF to do this?

I have tried different things like subgraphs and embedded triples - does not produce the expected.

Upvotes: 0

Views: 67

Answers (0)

Related Questions