While using Jena (java) or RDFLib (python), how should I find out whether to open the ontology as 'turtle' or 'xml'?
问题 Ontology files usually have extensions such as .owl or .rdf. I want to know when I should open ontologies with 'turtle' and when with 'xml' or other formats? Because it seems that each of them is useful for a type of format and unfortunately, it seems that people sometimes save files with the wrong extension. Here is a sample code in Python (but java is not very different either): g.parse('ontology.owl', format='turtle') So, how do I know here the turtle is the correct format? Thanks in