01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: */
11: package org.ontoware.rdf2go.model;
12:
13: import org.ontoware.rdf2go.model.node.NodeOrVariable;
14: import org.ontoware.rdf2go.model.node.ResourceOrVariable;
15: import org.ontoware.rdf2go.model.node.UriOrVariable;
16:
17: /**
18: * Triple match representation in rdf2go
19: *
20: * Implementations are expected to have valid implem
21: *
22: * @author mvo
23: */
24: public interface TriplePattern {
25:
26: /**
27: *
28: * @return URI or BlankNode
29: */
30: public ResourceOrVariable getSubject();
31:
32: /**
33: * @return The URI representing the predicate (property)
34: */
35: public UriOrVariable getPredicate();
36:
37: /**
38: * @return URI, String, TypedLiteral, LanguageTaggedLiteral or BlankNode
39: */
40: public NodeOrVariable getObject();
41:
42: /**
43: * @param statement
44: * @return true if this pattern matches the given statement. Ignores context.
45: * @since RDF2Go 4.4.2
46: */
47: public boolean matches(Statement statement);
48:
49: }
|