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.exception.ModelRuntimeException;
14: import org.ontoware.rdf2go.model.node.NodeOrVariable;
15: import org.ontoware.rdf2go.model.node.ResourceOrVariable;
16: import org.ontoware.rdf2go.model.node.UriOrVariable;
17:
18: public interface ModelRemovePatterns extends ModelAddRemove,
19: FindableModel {
20:
21: /**
22: * remove all matching triple patterms from the model
23: *
24: * @param triplePattern
25: * @throws ModelRuntimeException
26: */
27: void removeStatements(TriplePattern triplePattern)
28: throws ModelRuntimeException;
29:
30: /**
31: * remove a (subject, property ,object)-statement from the model
32: *
33: * @param subject
34: * URI or Object (= blankNode)
35: * @param predicate
36: * @param object
37: * URI or String (=plainLiteral) or BlankNode (=blankNode) or
38: * TypedLiteral or LanguageTagLiteral
39: * @throws ModelRuntimeException
40: */
41: void removeStatements(ResourceOrVariable subject,
42: UriOrVariable predicate, NodeOrVariable object)
43: throws ModelRuntimeException;
44:
45: }
|