@Test public void testAcceptDomain() throws Exception { Assert.assertTrue(Schema.isSchemaTriple(TestUtils.statement( lubm("degreeFrom"), RDFS.DOMAIN, lubm("Person")))); }
public static boolean isSchemaTriple(Statement triple) { IRI pred = triple.getPredicate(); if (schemaPredicates.contains(pred)) { return true; } else if (pred.equals(RDF.TYPE)) { if (schemaTypes.contains(triple.getObject())) { return true; } } return false; }
Schema { public static boolean isSchemaTriple(Statement triple) { IRI pred = triple.getPredicate(); if (schemaPredicates.contains(pred)) { return true; } else if (pred.equals(RDF.TYPE)) { if (schemaTypes.contains(triple.getObject())) { return true; } } return false; } }
Schema { public static boolean isSchemaTriple(Statement triple) { IRI pred = triple.getPredicate(); if (schemaPredicates.contains(pred)) { return true; } else if (pred.equals(RDF.TYPE)) { if (schemaTypes.contains(triple.getObject())) { return true; } } return false; } Schema(); }
Schema { public static boolean isSchemaTriple(Statement triple) { IRI pred = triple.getPredicate(); if (schemaPredicates.contains(pred)) { return true; } else if (pred.equals(RDF.TYPE)) { if (schemaTypes.contains(triple.getObject())) { return true; } } return false; } Schema(); static boolean isSchemaTriple(Statement triple); OwlClass getClass(Resource c); OwlClass getClass(Value c); OwlProperty getProperty(IRI p); OwlProperty getProperty(Value p); boolean hasProperty(IRI r); boolean hasClass(Resource r); boolean hasRestriction(Resource r); void processTriple(Statement triple); void closure(); boolean containsTriple(Statement triple); String getSummary(); String explainRestriction(Resource type); }
Schema { public static boolean isSchemaTriple(Statement triple) { IRI pred = triple.getPredicate(); if (schemaPredicates.contains(pred)) { return true; } else if (pred.equals(RDF.TYPE)) { if (schemaTypes.contains(triple.getObject())) { return true; } } return false; } Schema(); static boolean isSchemaTriple(Statement triple); OwlClass getClass(Resource c); OwlClass getClass(Value c); OwlProperty getProperty(IRI p); OwlProperty getProperty(Value p); boolean hasProperty(IRI r); boolean hasClass(Resource r); boolean hasRestriction(Resource r); void processTriple(Statement triple); void closure(); boolean containsTriple(Statement triple); String getSummary(); String explainRestriction(Resource type);  }