package org.openiot.lsm.utils; /** * Copyright (c) 2011-2014, OpenIoT * * This file is part of OpenIoT. * * OpenIoT is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, version 3 of the License. * * OpenIoT is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with OpenIoT. If not, see <http://www.gnu.org/licenses/>. * * Contact: OpenIoT mailto: info@openiot.eu */ import java.util.ArrayList; import org.openiot.commons.util.PropertyManagement; /** * * @author Hoan Nguyen Mau Quoc * */ public class VirtuosoConstantUtil { static PropertyManagement propertyManagement = new PropertyManagement(); public final static String sensorHasPlacePrefix = "http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation"; public final static String observationIsObservedBySensorPrefix = "http://purl.oclc.org/NET/ssnx/ssn#observedBy"; public static ArrayList<String> authorizedGraphs = new ArrayList<String>(); public final static String FeatureOfInterest = "http://purl.oclc.org/NET/ssnx/ssn#FeatureOfInterest"; /** * LSM Authentication prefix define */ public final static String CloudServicePrefix = propertyManagement.getOpeniotResourceNamespace() + "service/"; public final static String RolePrefix = propertyManagement.getOpeniotResourceNamespace() + "role/"; public final static String PermissionPrefix = propertyManagement.getOpeniotResourceNamespace() + "permission/"; public final static String OAuthUserPrefix = propertyManagement.getOpeniotResourceNamespace() + "user/"; static{ initAuthorizedGraph(); } private static void initAuthorizedGraph() { // TODO Auto-generated method stub authorizedGraphs.add("http://services.openiot.eu/graphs/sensordata#"); authorizedGraphs.add("http://services.openiot.eu/graphs/sensormeta#"); authorizedGraphs.add("http://services.openiot.eu/graphs/testSchema#"); authorizedGraphs.add("http://services.openiot.eu/graphs/demo/sensordata#"); authorizedGraphs.add("http://services.openiot.eu/graphs/demo/sensormeta#"); authorizedGraphs.add("http://services.openiot.eu/graphs/test/sensordata#"); authorizedGraphs.add("http://services.openiot.eu/graphs/test/sensormeta#"); } }