/** * Creates a QualifiedName from a method. * <p> * This factory method will create a QualifiedName from the Method itself. * * </p> * * @param method Type method that returns a Property, for which the QualifiedName will be representing. * * @return A QualifiedName representing this method. * * @throws NullArgumentException If the {@code method} argument passed is null. */ public static QualifiedName fromAccessor( AccessibleObject method ) { NullArgumentException.validateNotNull( "method", method ); return fromClass( ( (Member) method ).getDeclaringClass(), ( (Member) method ).getName() ); }
public void addDefaultTriples( String resultType ) { triples.add( new Triple( "?entityType", "rdfs:subClassOf", "<" + Classes.toURI( resultType ) + ">", false ) ); triples.add( new Triple( "?entity", "rdf:type", "?entityType", false ) ); triples.add( new Triple( "?entity", addNamespace( QualifiedName.fromClass( Identity.class, "identity" ).toNamespace() ) + ":identity", "?identity", false ) ); }