Class ReasonerStatementPattern


  • public class ReasonerStatementPattern
    extends Object
    For now, this only models Object Properties. It should be easy to add Data Property patterns by making this abstract and creating two concrete subclasses.
    • Method Detail

      • objectPattern

        public static ReasonerStatementPattern objectPattern​(org.apache.jena.rdf.model.Property predicate)
      • getPredicate

        public org.apache.jena.rdf.model.Property getPredicate()
      • matches

        public boolean matches​(ReasonerStatementPattern that)
        All fields must match, either by being equal, or by being a wild card.
      • matchStatementsFromModel

        public List<org.apache.jena.rdf.model.Statement> matchStatementsFromModel​(org.apache.jena.rdf.model.Model m)
        Get a list of statements from this model that match this pattern.
      • buildToString

        public String buildToString()