This line of code;
ResourceFactory.createProperty("http://id.example.org/column#99");
or;
ResourceFactory.createProperty("http://id.example.org/column/99");
throws the following error.
Exception in thread "main"
com.hp.hpl.jena.shared.InvalidPropertyURIException:
http://id.example.org/column#99
at
com.hp.hpl.jena.rdf.model.impl.PropertyImpl.checkLocalName(PropertyImpl.java:83)
at
com.hp.hpl.jena.rdf.model.impl.PropertyImpl.<init>(PropertyImpl.java:72)
at
com.hp.hpl.jena.rdf.model.ResourceFactory$Impl.createProperty(ResourceFactory.java:241)
at
com.hp.hpl.jena.rdf.model.ResourceFactory.createProperty(ResourceFactory.java:109)
at com.unit4.scratch.Scratch2.main(Scratch2.java:11)
The PropertyImpl( String uri ) contructor makes a call to
checkLocalName() which throws the exception if (localName == null ||
localName.equals( "" )).
How come the property URI isn't valid please?