congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrefixMapping2.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.jena.sparql.util.PrefixMapping2
constructor

Best Java code snippets using org.apache.jena.sparql.util.PrefixMapping2.<init> (Showing top 5 results out of 315)

origin: org.aksw.jena-sparql-api/jena-sparql-api-mapper

public SparqlEntityManagerFactory() {
  this.prologue = new Prologue(new PrefixMapping2(PrefixMapping.Extended));
  this.scanPackageNames = new LinkedHashSet<>();
}
origin: SmartDataAnalytics/jena-sparql-api

public SparqlEntityManagerFactory() {
  this.prologue = new Prologue(new PrefixMapping2(PrefixMapping.Extended));
  this.scanPackageNames = new LinkedHashSet<>();
}
origin: apache/jena

public void usePrologueFrom(Prologue other)
{
  prefixMap = new PrefixMapping2(other.prefixMap) ;
  seenBaseURI = false ;
  if ( other.resolver != null )
    resolver = IRIResolver.create(getBaseURI()) ;
}

origin: apache/jena

public Prologue sub(PrefixMapping newMappings, String base)
{
  // New prefix mappings
  PrefixMapping ext = getPrefixMapping() ;
  if ( newMappings != null )
    ext = new PrefixMapping2(ext, newMappings) ;
  // New base.
  IRIResolver r = resolver ;
  if ( base != null )
    r = IRIResolver.create(base) ;
  return new Prologue(ext, r) ;
}

origin: SmartDataAnalytics/jena-sparql-api

public static void main(String[] args) {
  PrefixMapping2 pm = new PrefixMapping2(PrefixMapping.Extended);
  pm.setNsPrefix("o", "http://fp7-pp.publicdata.eu/ontology/");
  pm.setNsPrefix("foaf", FOAF.NS);
org.apache.jena.sparql.utilPrefixMapping2<init>

Popular methods of PrefixMapping2

  • getLocalPrefixMapping
  • getNsPrefixMap
  • setNsPrefix
  • getGlobalPrefixMapping
  • getNsPrefixURI
  • getNsURIPrefix

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now