简体   繁体   中英

dotNetRDF owl file encoding for chinese

I have a owl file generated by Protege. Some classes' name and property name contain Chinese words like "苹果".

It's ok when I just open the owl file. However, when I usw OntologyGraph to load the owl file and foreach for OntologyClass, it shows error codes.

I want to ask, does dotnetrdf support chinese? How can I set the encoding style by dotnetrdf

Thanks for answering!

The problem might be with the file encoding, similar to the one reported in this question .

A Protege .owl file is an XML file that should contain a first line that specifies what the file encoding is. If that line is either missing or specifies an incorrect encoding for the file then dotNetRDF will potentially misread the file, leading to errors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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