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

rdfreactor.generator.5.0.0.source-code.vocabulary.vm Maven / Gradle / Ivy

Go to download

RDFReactor creates domain-specific, type-safe Java classes which act as a view over domain-free, loosely typed RDF instances. This package generates the Java classes form an RDF vocabulary.

There is a newer version: 5.0.1
Show newest version
#macro( mixedcase $name )$name.substring(0,1).toUpperCase()$name.substring(1)#end
#macro( lowercase $name )$name.toLowerCase()#end
#macro( uppercase $name )$name.toUpperCase()#end

/**
 * generated by http://RDFReactor.semweb4j.org on ${now}
 */
package $package.name;

import org.ontoware.rdf2go.model.Model;
import org.ontoware.rdf2go.model.node.BlankNode;
import org.ontoware.rdf2go.model.node.URI;
import org.ontoware.rdf2go.model.node.impl.URIImpl;
import org.ontoware.rdf2go.exception.ModelException;

#if ($class.throwsRDFDataException() )
import org.ontoware.rdfreactor.runtime.RDFDataException;
#end
#if ($class.throwsCardinalityException() )
import org.ontoware.rdfreactor.runtime.CardinalityException;
#end

#if($class.superclass.toString().equals("ReactorBaseNamed"))
import org.ontoware.rdfreactor.runtime.ReactorBaseNamed;
#end

/**
 * This class was generated by RDFReactor on ${now}
#if ($class.properties.size() > 0)
 * This class defines these properties:
 * 
    #foreach( $prop in $class.properties ) *
  • #mixedcase($prop.name)
  • #end *
#end #if($class.getComment()) * Schema Comment: ${class.getComment()} #end */ public class $class.name extends $class.superclass { /** $class.mappedTo */ public static final URI RDFS_CLASS = URIImpl.createURIWithoutChecking("${class.mappedTo}"); #foreach( $prop in $class.properties ) /** $prop.mappedTo */ public static final URI #uppercase($prop.name) = URIImpl.createURIWithoutChecking("${prop.mappedTo}"); #end /** all property-URIs with this class as domain */ public static final URI[] MANAGED_URIS = { #foreach( $prop in $class.properties ) URIImpl.createURIWithoutChecking("${prop.mappedTo}")#if (${velocityCount} < $class.properties.size()), #end #end }; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy