以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  [急问]GBK编码的RDF文件转换至N-Triples  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=28017)


--  作者:fromthirty
--  发布时间:3/2/2006 11:24:00 AM

--  [急问]GBK编码的RDF文件转换至N-Triples
我手头有一个GBK encoding的rdf文档,现在需要将其转换成为.nt格式的文件,我使用的是4suite的4rdf工具,但是报错说“XML parse error-Unknown encoding”,不知该做何更改哪,或者哪位知道其他可用的转换工具么?多谢!
--  作者:fromthirty
--  发布时间:3/2/2006 11:34:00 AM

--  
急呀急,顶啊顶!
--  作者:jpz6311whu
--  发布时间:3/2/2006 5:21:00 PM

--  
jena的model有一个方法:
write
Model write(java.io.OutputStream out,
            java.lang.String lang)Write a serialized represention of this model in a specified language.

The language in which to write the model is specified by the lang argument. Predefined values are "RDF/XML", "RDF/XML-ABBREV", "N-TRIPLE" and "N3". The default value, represented by null, is "RDF/XML".


Parameters:
out - The output stream to which the RDF is written
lang - The output langauge
Returns:
This model


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms