On Wed, Jan 29, 2014 at 4:45 PM, Mona Salem <monasalem...@gmail.com> wrote:
> AnnotationLabel is a property of model2.

It's not though.  In your main method you have a local variable called
AnnotationLabel:

    Property AnnotationLabel =
model2.createProperty("http://www.mydirectory.com/softwareproduct#softwareannotation";);

but that's a local variable.  It doesn't have scope in the
printAnnotations method:

    private model2 printAnnotations(JsonNode annotations) {
        ...
        SoftwareProduct.addProperty(AnnotationLabel,
classDetails.get("prefLabel").asText());
        ...

And actually, now that I see that method declaration again, I'm confused.

    private model2 printAnnotations(JsonNode annotations) {

says that printAnnotations is a private method that returns something
that has type model2.  Is model2 even the name of a class in your
code?  (I know it's the name of a variable, but that's completely
unrelated.)  It certainly doesn't follow standard Java naming
conventions.  The problems you're running into here are Java problems,
and aren't particular to Jena at all.

//JT

-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/

Reply via email to