blob: 7fc5bbc830ebba8ca860701d97d7d1b1c1da3612 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
package org.apache.any23.vocab;
import org.eclipse.rdf4j.model.IRI;
/**
* The <i>MS Excel</i> extractor vocabulary.
*
* @see org.apache.any23.plugin.officescraper.ExcelExtractor
* @author Michele Mostarda (mostarda@fbk.eu)
*/
public class Excel extends Vocabulary {
public static final String SHEET = "sheet";
public static final String ROW = "row";
public static final String CELL = "cell";
public static final String CONTAINS_SHEET = "containsSheet";
public static final String CONTAINS_ROW = "containsRow";
public static final String CONTAINS_CELL = "containsCell";
public static final String CELL_VALUE = "cellValue";
public static final String SHEET_NAME = "sheetName";
public static final String FIRST_ROW = "firstRow";
public static final String LAST_ROW = "lastRow";
public static final String FIRST_CELL = "firstCell";
public static final String LAST_CELL = "lastCell";
/**
* This property links the identifier of a <i>document</i> to the identifier of a <i>sheet</i>.
*/
public final IRI containsSheet = createProperty(CONTAINS_SHEET);
/**
* This property links the identifier of a <i>sheet</i> to the identifier of a <i>row</i>.
*/
public final IRI containsRow = createProperty(CONTAINS_ROW);
/**
* This property links the identifier of a <i>row</i> to the identifier of a <i>cell</i>.
*/
public final IRI containsCell = createProperty(CONTAINS_CELL);
/**
* This property links the identifier of a <i>Sheet</i> to the name of the sheet.
*/
public final IRI sheetName = createProperty(SHEET_NAME);
/**
* This property links the identifier of a <i>Sheet</i> to the index of the first declared row.
*/
public final IRI firstRow = createProperty(FIRST_ROW);
/**
* This property links the identifier of a <i>Sheet</i> to the index of the last declared row.
*/
public final IRI lastRow = createProperty(LAST_ROW);
/**
* This property links the identifier of a <i>Row</i> to the index of the first declared cell.
*/
public final IRI firstCell = createProperty(FIRST_CELL);
/**
* This property links the identifier of a <i>Row</i> to the index of the last declared cell.
*/
public final IRI lastCell = createProperty(LAST_CELL);
/**
* This property links the identifier of a <i>cell</i> to the content of the cell.
*/
public final IRI cellValue = createProperty(CELL_VALUE);
/**
* This resource identifies a <i>Sheet</i>.
*/
public final IRI sheet = createResource(SHEET);
/**
* This resource identifies a <i>row</i>.
*/
public final IRI row = createResource(ROW);
/**
* This resource identifies a <i>cell</i>.
*/
public final IRI cell = createResource(CELL);
/**
* The namespace of the vocabulary as a string.
*/
public static final String NS = "http://any23.apache.org/excel/";
private static final class InstanceHolder {
private static final Excel instance = new Excel();
}
public static Excel getInstance() {
return InstanceHolder.instance;
}
/**
*
* @param localName resource label to create
* @return the new IRI instance.
*/
public IRI createResource(String localName) {
return createProperty(NS, localName);
}
/**
*
* @param localName property label to create
* @return the new IRI instance.
*/
public IRI createProperty(String localName) {
return createProperty(NS, localName);
}
private Excel() {
super(NS);
}
}