JavaWang97
JavaWang97

Reputation: 1

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!

Upvotes: 0

Views: 41

Answers (1)

Kal
Kal

Reputation: 1932

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.

Upvotes: 0

Related Questions