Are you sure that this code compiles?

> Property prop= model.getProperty(ns,"GPA");

ns is a String in your code, the method expects a Resource object is
first argument. You totally use the wrong method here, as it returns a

Model::createProperty(String nameSpace, String localName) 

would be the method to call, or even better as you use an OntModel 

OntModel::getDatatypeProperty( String uri )

Lorenz B├╝hmann
AKSW group, University of Leipzig
Group: - semantic web research center

Reply via email to