Nope. Self-contained. The problem was a missing slash (ā€˜/ā€˜) in the 
location-mapping file redirect statement. java.net.URL 
<http://en.wikipedia.org/wiki/File_URI_scheme>java.net <http://java.net/>.URL 
has to have three of them. 

> On Jan 3, 2015, at 6:16 AM, Andy Seaborne <[email protected]> wrote:
> 
> Does
> file://Users/twostewards_fb/Documents/git/ontologies/Stewardship_v0_0_15.ttl
> 
> contain any owl:imports?
> 
>       Andy
> 
> On 03/01/15 01:21, Grant Pax wrote:
>> Any ideas why I’d get this?
>> 
>> OWL ontology:
>> 141 triples (created with Protege and opens without a hitch)
>> 
>> source:
>> 
>> /**
>>  *
>>  */
>> package basic;
>> 
>> import com.hp.hpl.jena.ontology.*;
>> import com.hp.hpl.jena.rdf.model.*;
>> 
>> /**
>>  * @author twostewards_fb
>>  *
>>  */
>> public class HelloRDFWorld {
>> 
>>      /**
>>       * @param args
>>       */
>>      public static void main(String[] args) {
>>              OntModel m = 
>> ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF);
>>              
>>              m.read("http://ontologies.twostewards.com/Stewardship/0.0.15";);
>>              
>>              m.write(System.out, "Turtle");
>> 
>>      }
>> 
>> }
>> 
>> Console:
>> 
>> DEBUG StreamManager - Found: location-mapping.n3 (ClassLoaderLocator)
>> DEBUG JenaIOEnvironment - Mapping: 
>> http://ontologies.twostewards.com/Stewardship/0.0.15 => 
>> file://Users/twostewards_fb/Documents/git/ontologies/Stewardship_v0_0_15.ttl
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type xsd:integer) -> (?a 
>> rdf:type xsd:decimal) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:intersectionOf ?y) -> (?x 
>> rdf:type owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Class) -> (?a rdf:type 
>> rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ symmetricProperty1b: (?Y 
>> owl:disjointWith ?X) -> (?X owl:disjointWith ?Y) ]
>> DEBUG FBRuleInfGraph - Adding rule [ symmetricProperty1b: (?Y 
>> owl:differentFrom ?X) -> (?X owl:differentFrom ?Y) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:incompatibleWith ?y) 
>> notFunctor(?y) -> (?y rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Ontology) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:incompatibleWith ?y) -> (?x 
>> rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:backwardCompatibleWith ?y) 
>> notFunctor(?y) -> (?y rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:backwardCompatibleWith ?y) -> 
>> (?x rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:priorVersion ?y) notFunctor(?y) 
>> -> (?y rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:priorVersion ?y) -> (?x 
>> rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:imports ?y) notFunctor(?y) -> 
>> (?y rdf:type owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:imports ?y) -> (?x rdf:type 
>> owl:Ontology) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:OntologyProperty) -> 
>> (?a rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:onProperty ?y) notFunctor(?y) 
>> -> (?y rdf:type owl:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Property) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:onProperty ?y) -> (?x rdf:type 
>> owl:Restriction) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Restriction) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ symmetricProperty1b: (?Y owl:sameAs ?X) 
>> -> (?X owl:sameAs ?Y) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:disjointWith ?y) notFunctor(?y) 
>> -> (?y rdf:type owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:disjointWith ?y) -> (?x 
>> rdf:type owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:equivalentClass ?y) 
>> notFunctor(?y) -> (?y rdf:type owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:equivalentClass ?y) -> (?x 
>> rdf:type owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Nothing) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Nothing) -> (?a 
>> rdf:type owl:Thing) ]
>> DEBUG FBRuleInfGraph - Adding rule [ prototype2b: 
>> (-1d1fe0a2:14aad51086e:-7ff0 rdf:type ?d) -> (owl:Thing rdfs:subClassOf ?d) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Thing) -> (?a rdf:type 
>> rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Restriction) -> (?a 
>> rdf:type owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:Class) -> (?a rdf:type 
>> rdfs:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x owl:oneOf ?y) -> (?x rdf:type 
>> owl:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:SymmetricProperty) -> 
>> (?a rdf:type owl:ObjectProperty) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:TransitiveProperty) -> 
>> (?a rdf:type owl:ObjectProperty) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type 
>> owl:InverseFunctionalProperty) -> (?a rdf:type owl:ObjectProperty) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:DatatypeProperty) -> 
>> (?a rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:ObjectProperty) -> (?a 
>> rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type owl:FunctionalProperty) -> 
>> (?a rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdfs:Datatype) -> (?a 
>> rdf:type rdfs:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdfs:isDefinedBy ?b) -> (?a 
>> rdfs:seeAlso ?b) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type 
>> rdfs:ContainerMembershipProperty) -> (?a rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdf:Seq) -> (?a rdf:type 
>> rdfs:Container) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdf:Bag) -> (?a rdf:type 
>> rdfs:Container) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdf:Alt) -> (?a rdf:type 
>> rdfs:Container) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:rest ?y) notFunctor(?y) -> (?y 
>> rdf:type rdf:List) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdf:List) -> (?a rdf:type 
>> rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:range ?y) notFunctor(?y) -> 
>> (?y rdf:type rdfs:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdfs:Class) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:domain ?y) notFunctor(?y) -> 
>> (?y rdf:type rdfs:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:subClassOf ?y) notFunctor(?y) 
>> -> (?y rdf:type rdfs:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:subPropertyOf ?y) 
>> notFunctor(?y) -> (?y rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdf:Property) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:rest ?y) -> (?x rdf:type 
>> rdf:List) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:first ?y) -> (?x rdf:type 
>> rdf:List) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:object ?y) -> (?x rdf:type 
>> rdf:Statement) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:predicate ?y) -> (?x rdf:type 
>> rdf:Statement) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:subject ?y) -> (?x rdf:type 
>> rdf:Statement) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:range ?y) -> (?x rdf:type 
>> rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:domain ?y) -> (?x rdf:type 
>> rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:subClassOf ?y) -> (?x rdf:type 
>> rdfs:Class) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdfs:subPropertyOf ?y) -> (?x 
>> rdf:type rdf:Property) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdf:Statement) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?a rdf:type rdfs:Literal) -> (?a 
>> rdf:type rdfs:Resource) ]
>> DEBUG FBRuleInfGraph - Adding rule [ (?x rdf:type ?y) notFunctor(?y) -> (?y 
>> rdf:type rdfs:Class) ]
>> DEBUG FileManager - Add location: LocatorFile
>> DEBUG FileManager - Add location: LocatorURL
>> DEBUG FileManager - Add location: ClassLoaderLocator
>> DEBUG FileManager - Found: ont-policy.rdf (ClassLoaderLocator)
>> DEBUG StreamManager - Mapped: 
>> http://ontologies.twostewards.com/Stewardship/0.0.15 => 
>> file://Users/twostewards_fb/Documents/git/ontologies/Stewardship_v0_0_15.ttl
>> Exception in thread "main" com.hp.hpl.jena.shared.WrappedIOException: 
>> java.net.ConnectException: Operation timed out
>>      at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:263)
>>      at 
>> com.hp.hpl.jena.ontology.impl.OntModelImpl.readDelegate(OntModelImpl.java:3109)
>>      at 
>> com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2206)
>>      at 
>> com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2122)
>>      at basic.HelloRDFWorld.main(HelloRDFWorld.java:22)
>> Caused by: java.net.ConnectException: Operation timed out
>>      at java.net.PlainSocketImpl.socketConnect(Native Method)
>>      at 
>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>>      at 
>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>>      at 
>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>>      at java.net.Socket.connect(Socket.java:579)
>>      at java.net.Socket.connect(Socket.java:528)
>>      at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:958)
>>      at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:918)
>>      at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1013)
>>      at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:999)
>>      at 
>> sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
>>      at 
>> sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)
>>      at java.net.URL.openStream(URL.java:1037)
>>      at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:260)
>>      ... 4 more
>> 
>> 
> 

Reply via email to