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