/** * <p>Answer a property that is attached to the given model, which will either * be this property or a new property object with the same URI in the given * model. If the given model is an ontology model, make the new property object * an ontproperty.</p> * @param m A model * @return A property equal to this property that is attached to m. */ @Override public Property inModel( Model m ) { return (getModel() == m) ? this : m.createProperty( getURI() ); }
/** * <p>Answer a property that is attached to the given model, which will either * be this property or a new property object with the same URI in the given * model. If the given model is an ontology model, make the new property object * an ontproperty.</p> * @param m A model * @return A property equal to this property that is attached to m. */ @Override public Property inModel( Model m ) { return (getModel() == m) ? this : m.createProperty( getURI() ); }