marcelotto / spread2rdf

DSL-based converter for spreadsheets to RDF
http://rubygems.org/gems/spread2rdf
MIT License
4 stars 2 forks source link

Datatype in costum logic #7

Closed GitHubber1 closed 10 years ago

GitHubber1 commented 10 years ago

Hello Marcel,

thanks for adding the feature to define the rdf:datatype, that is really helpful. Is it also possible to set the rdf:datatype using statement methods in costum logic blocks?

Thanks a lot, Andy

marcelotto commented 10 years ago

Yes, this should be possible already. The arguments are only used to construct RDF::Statements, so you can provide the object as a RDF::Literal:

statement(subject, predicate, RDF::Literal('2014-02-27', datatype: RDF::XSD.date))
GitHubber1 commented 10 years ago

Thank you for your help, I did not know that.