Re: Support load() to provide explicit ontology file locations
Posted by
jo-fra on
URL: http://owlready.306.s1.nabble.com/Support-load-to-provide-explicit-ontology-file-locations-tp3197p3244.html
I tried it and it works for absolute file paths. Great!
However, additional support for remote URLs would be awesome, e.g.
from owlready2 import PREDEFINED_ONTOLOGIES, get_ontology
# Absolute path works
# PREDEFINED_ONTOLOGIES[
# "http://rds.posccaesar.org/ontology/lis14/ont/core/1.0"
# ] = "C:\work\code\owlready2-import-ontologies\LIS-14_1.0.rdf"
# Remote url does not work
PREDEFINED_ONTOLOGIES[
"http://rds.posccaesar.org/ontology/lis14/ont/core/1.0"
] = "http://rds.posccaesar.org/ontology/lis14/ont/core/1.0/LIS-14.rdf"
onto = get_ontology("file://importing-ontology.rdf").load()