@Override
 public boolean canWrap(Node node, EnhGraph eg) {
   // node will support being an TransitiveProperty facet if it has rdf:type
   // owl:TransitiveProperty or equivalent
   Profile profile = (eg instanceof OntModel) ? ((OntModel) eg).getProfile() : null;
   return (profile != null) && profile.isSupported(node, eg, TransitiveProperty.class);
 }
Пример #2
0
 @Override
 public boolean canWrap(Node node, EnhGraph eg) {
   // node will support being an Individual facet if it is a URI node or bNode
   Profile profile = (eg instanceof OntModel) ? ((OntModel) eg).getProfile() : null;
   return (profile != null) && profile.isSupported(node, eg, Individual.class);
 }