/* * 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.jena.sparql.vocabulary ; import org.apache.jena.graph.Node ; import org.apache.jena.rdf.model.Model ; import org.apache.jena.rdf.model.ModelFactory ; import org.apache.jena.rdf.model.Property ; import org.apache.jena.rdf.model.Resource ; /** * Vocabulary definitions from list-pfunction.ttl * @author Auto-generated by schemagen on 12 Jan 2007 16:58 */ public class ListPFunction { /** <p>The RDF model that holds the vocabulary terms</p> */ private static Model m_model = ModelFactory.createDefaultModel(); /** <p>The namespace of the vocabulary as a string</p> */ public static final String NS = "http://jena.apache.org/ARQ/list#"; /** <p>The namespace of the vocabulary as a string</p> (Jena2 name) */ public static final String NSJ2 = "http://jena.hpl.hp.com/ARQ/list#"; /** <p>The namespace of the vocabulary as a string</p> * @see #NS */ public static String getURI() {return NS;} /** <p>The namespace of the vocabulary as a resource</p> */ public static final Resource NAMESPACE = m_model.createResource( NS ); /** <p>Length relationship of a list [subject] to a length [object]</p> */ public static final Property length = m_model.createProperty( NS+"length" ); /** <p>Length relationship of a list [subject] to a length [object]</p> (jena2 name - deprecated) * @deprecated */ @Deprecated public static final Property lengthJ2 = m_model.createProperty( NSJ2+"length" ); /** <p>Index relationship of a list [subject] to a query list (index member)</p> */ public static final Property index = m_model.createProperty( NS+"index" ); /** <p>Index relationship of a list [subject] to a query list (index member)</p> * (jena2 name - deprecated) * @deprecated */ @Deprecated public static final Property indexJ2 = m_model.createProperty( NSJ2+"index" ); /** <p>Membership relationship of a list [subject] to a member [object] c.f. rdfs:member</p> */ public static final Property member = m_model.createProperty( NS+"member" ); /** <p>Membership relationship of a list [subject] to a member [object] c.f. rdfs:member</p> * (jena2 name - deprecated) * @deprecated */ @Deprecated public static final Property memberJ2 = m_model.createProperty( NSJ2+"member" ); // ---- Some very old names. /** @deprecated : list:index preferred */ @Deprecated public static final Property listIndex = m_model.createProperty( NSJ2+"listIndex" ); /** @deprecated : list:length preferred */ @Deprecated public static final Property listLength = m_model.createProperty( NSJ2+"listLength" ); /** @deprecated : list:member preferred */ @Deprecated public static final Property listMember = m_model.createProperty( NSJ2+"listMember" ); // ---- /** list:member as a node */ @Deprecated public static final Node nListMemberJ2 = memberJ2.asNode() ; /** list:member as a node */ public static final Node nListMember = member.asNode() ; /** list:length as a node */ @Deprecated public static final Node nListLengthJ2 = lengthJ2.asNode() ; /** list:length as a node */ public static final Node nListLength = length.asNode() ; /** list:index as a node */ @Deprecated public static final Node nListIndexJ2 = memberJ2.asNode() ; /** list:index as a node */ public static final Node nListIndex = member.asNode() ; }