All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.topbraid.jenax.util.ImportProperties Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
/*
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *  See the NOTICE file distributed with this work for additional
 *  information regarding copyright ownership.
 */
package org.topbraid.jenax.util;

import java.util.Arrays;
import java.util.List;

import org.topbraid.shacl.vocabulary.SH;

import org.apache.jena.rdf.model.Property;
import org.apache.jena.vocabulary.OWL;

/**
 * A singleton controlling which properties shall be used to expand imports.
 * This includes owl:imports.
 * 
 * @author Holger Knublauch
 */
public class ImportProperties {

	private static ImportProperties singleton = new ImportProperties();
	
	public static ImportProperties get() {
		return singleton;
	}
	
	public static void set(ImportProperties value) {
		singleton = value;
	}
	
	
	private List results = Arrays.asList(new Property[] {
		OWL.imports,
		SH.shapesGraph
	});
	
	
	public List getImportProperties() {
		return results;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy