1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.db.service;
\r
14 import org.simantics.db.Resource;
\r
15 import org.simantics.db.Statement;
\r
17 public interface StatementSupport {
\r
18 Statement build(Resource s, Resource p, Resource o);
\r
19 boolean subjectEquals(Statement stm, Resource r);
\r
20 boolean predicateEquals(Statement stm, Resource r);
\r
21 boolean objectEquals(Statement stm, Resource r);
\r
22 boolean subjectAsserted(Statement stm);
\r
23 boolean predicateAsserted(Statement stm);
\r
24 boolean objectAsserted(Statement stm);
\r
25 boolean subjectPersistent(Statement stm);
\r
26 boolean predicatePersistent(Statement stm);
\r
27 boolean objectPersistent(Statement stm);
\r
28 boolean isList(Statement stm);
\r
29 boolean isTag(Statement stm);
\r