On 06/02/12 15:19, Chris Dollin wrote:
Dick Murray said:

(re http://id.example.org/column/99)

How come the property URI isn't valid please?
I believe it can't be represented as a predicate in RDF/XML. (Because it
has an empty localName.) Jena has RDF/XML history in its bones.

[Aside: it looks in your example that the URIs have a leading space,
which, if true, makes them illegal in a not-detected-by-jena kind of way.]

Chris

I'm getting different results based on the createProperty(uri) called...

package com.unit4.scratch;

import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.ResourceFactory;
import com.hp.hpl.jena.shared.InvalidPropertyURIException;

The following code;

public class Scratch2 {

    /**
     * @param args
     */
    public static void main(String[] args) {
        try {
ResourceFactory.createProperty("http://id.example.org/column/99";);
        } catch (InvalidPropertyURIException e) {
            System.out.println("fred " + e);
        }

System.out.println(ModelFactory.createDefaultModel().createProperty("http://id.example.org/column/99";));
    }

}

gives.

fred com.hp.hpl.jena.shared.InvalidPropertyURIException: http://id.example.org/column/99
http://id.example.org/column/99

Which implies the ResourceFactory has an issue but the ModelFactory doesn't.


Reply via email to