Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » How to serialize the RDF type for resource annotated properties ?
How to serialize the RDF type for resource annotated properties ? [message #1064947] Fri, 21 June 2013 19:25 Go to next message
Givanildo Alves is currently offline Givanildo AlvesFriend
Messages: 4
Registered: June 2013
Junior Member
I have a resource class with the following annotated property

@OslcPropertyDefinition("http:/purl.org/dc/terms/aBoolean")
@OslcName("aBoolean")
@OslcOccurs(Occurs.ExactlyOne)
@OslcValueType(ValueType.Boolean)
public Boolean getABoolean() {
return true;
}

The serialized rdf xml for an instance of the resource:

<rdf:RDF xmlns:dcterms="http:/purl.org/dc/terms/" xmlns:rdf="http:/www.w3.org/1999/02/22-rdf-syntax-ns#">
<dcterms:Resource>
<dcterms:aBoolean>true</dcterms:aBoolean>
</dcterms:Resource>
</rdf:RDF>


Is it possible to enforce OSLC4J to make the rdf type explicit for the property (in other words, having the rdf:datatype="http:/www.w3.org/2001/XMLSchema#boolean") in the XML ?

Thanks

[Updated on: Fri, 21 June 2013 19:26]

Report message to a moderator

Re: How to serialize the RDF type for resource annotated properties ? [message #1065152 is a reply to message #1064947] Mon, 24 June 2013 14:02 Go to previous messageGo to next message
Samuel Padgett is currently offline Samuel PadgettFriend
Messages: 30
Registered: July 2009
Member
No, and we should set the right datatype. We recently made this change for dates. Can you open a bug against the Lyo project at bugs.eclipse.org?

The place in the code to look is JenaModelHelper.handleLocalResource() in OSLC4JJenaProvider.
Re: How to serialize the RDF type for resource annotated properties ? [message #1065213 is a reply to message #1065152] Mon, 24 June 2013 19:50 Go to previous message
Givanildo Alves is currently offline Givanildo AlvesFriend
Messages: 4
Registered: June 2013
Junior Member
Ok, Bug 411535 entered
Previous Topic:How to set "priority" for my work item with OSLC?
Next Topic:How to suppress the RDF type for a extended property in the resulting RDF XML ?
Goto Forum:
  


Current Time: Tue Mar 19 05:52:01 GMT 2024

Powered by FUDForum. Page generated in 0.02650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top