Tabnine Logo
Property.getLocalName
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocalName
method
in
org.apache.jena.rdf.model.Property

Best Java code snippets using org.apache.jena.rdf.model.Property.getLocalName (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

@Override
public String getVarName() {
  Property argProperty = getPredicate();
  if(argProperty != null) {
    return argProperty.getLocalName();
  }
  else {
    return null;
  }
}
origin: TopQuadrant/shacl

  @Override
  public int compare(SHParameter param1, SHParameter param2) {
    Property p1 = param1.getPredicate();
    Property p2 = param2.getPredicate();
    if(p1 != null && p2 != null) {
      return p1.getLocalName().compareTo(p2.getLocalName());
    }
    else {
      return 0;
    }
  }
});
origin: apache/jena

protected static int getIndex(final Property p) {
  if (p.getNameSpace().equals(RDF.getURI())
      && p.getLocalName().startsWith("_")) {
    try {
      return Integer.parseInt(p.getLocalName().substring(1));
    } catch (final NumberFormatException e) {
      // acceptable;
    }
  }
  return -1;
}
origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

  @Override
  public int compare(SHParameter param1, SHParameter param2) {
    Property p1 = param1.getPredicate();
    Property p2 = param2.getPredicate();
    if(p1 != null && p2 != null) {
      return p1.getLocalName().compareTo(p2.getLocalName());
    }
    else {
      return 0;
    }
  }
});
origin: TopQuadrant/shacl

@Override
public String getVarName() {
  Property argProperty = getPredicate();
  if(argProperty != null) {
    return argProperty.getLocalName();
  }
  else {
    return null;
  }
}
origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

@Override
public Map<String, SHParameter> getParametersMap() {
  Map<String,SHParameter> results = new HashMap<String,SHParameter>();
  for(SHParameter parameter : getParameters()) {
    Property property = parameter.getPredicate();
    if(property != null) {
      results.put(property.getLocalName(), parameter);
    }
  }
  return results;
}
origin: TopQuadrant/shacl

@Override
public Map<String, SHParameter> getParametersMap() {
  Map<String,SHParameter> results = new HashMap<String,SHParameter>();
  for(SHParameter parameter : getParameters()) {
    Property property = parameter.getPredicate();
    if(property != null) {
      results.put(property.getLocalName(), parameter);
    }
  }
  return results;
}
origin: com.github.galigator.openllet/openllet-examples

@SuppressWarnings("unchecked")
public static void printPropertyValues(final Individual ind, final Property prop)
{
  System.out.print(ind.getLocalName() + " has " + prop.getLocalName() + "(s): ");
  final ExtendedIterator<RDFNode> rsc = ind.listPropertyValues(prop);
  @SuppressWarnings("rawtypes")
  final ExtendedIterator<? extends Resource> rsc2 = (ExtendedIterator) rsc; //  Resource extends RDFNode 
  printIterator(rsc2);
}
origin: Galigator/openllet

@SuppressWarnings("unchecked")
public static void printPropertyValues(final Individual ind, final Property prop)
{
  System.out.print(ind.getLocalName() + " has " + prop.getLocalName() + "(s): ");
  final ExtendedIterator<RDFNode> rsc = ind.listPropertyValues(prop);
  @SuppressWarnings("rawtypes")
  final ExtendedIterator<? extends Resource> rsc2 = (ExtendedIterator) rsc; //  Resource extends RDFNode 
  printIterator(rsc2);
}
origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl

private NodeExpression createNodeExpression(Resource resource, Property predicate) {
  Statement s = resource.getProperty(predicate);
  if(s == null) {
    throw new IllegalArgumentException("Triple rule without " + predicate.getLocalName());
  }
  return NodeExpressionFactory.get().create(s.getObject());
}
origin: TopQuadrant/shacl

private NodeExpression createNodeExpression(Resource resource, Property predicate) {
  Statement s = resource.getProperty(predicate);
  if(s == null) {
    throw new IllegalArgumentException("Triple rule without " + predicate.getLocalName());
  }
  return NodeExpressionFactory.get().create(s.getObject());
}
origin: AtomGraph/Core

public StateBuilder replaceProperty(Property property, RDFNode value)
{
  if (property == null) throw new IllegalArgumentException("Property cannot be null");
  getResource().removeAll(property);
  getUriBuilder().replaceQueryParam(property.getLocalName(), (Object[])null);
  
  if (value != null) property(property, value);
  
  return this;
}
  
origin: apache/jena

public void testCreatePropertyTwoArgs()
{
  final Property p = model.createProperty("abc/", "def");
  Assert.assertEquals("abc/", p.getNameSpace());
  Assert.assertEquals("def", p.getLocalName());
  Assert.assertEquals("abc/def", p.getURI());
}
origin: org.apache.jena/jena-core

public void testCreatePropertyOneArg()
{
  final Property p = model.createProperty("abc/def");
  Assert.assertEquals("abc/", p.getNameSpace());
  Assert.assertEquals("def", p.getLocalName());
  Assert.assertEquals("abc/def", p.getURI());
}
origin: apache/jena

public void testCreatePropertyOneArg()
{
  final Property p = model.createProperty("abc/def");
  Assert.assertEquals("abc/", p.getNameSpace());
  Assert.assertEquals("def", p.getLocalName());
  Assert.assertEquals("abc/def", p.getURI());
}
origin: org.apache.jena/jena-core

public void testCreatePropertyTwoArgs()
{
  final Property p = model.createProperty("abc/", "def");
  Assert.assertEquals("abc/", p.getNameSpace());
  Assert.assertEquals("def", p.getLocalName());
  Assert.assertEquals("abc/def", p.getURI());
}
origin: org.apache.jena/jena-core

public void testCreatePropertyStrangeURI()
{
  final String uri = RDF.getURI() + "_345";
  final Property p = model.createProperty(uri);
  Assert.assertEquals(RDF.getURI(), p.getNameSpace());
  Assert.assertEquals("_345", p.getLocalName());
  Assert.assertEquals(uri, p.getURI());
}
origin: apache/jena

public void testCreatePropertyStrangeURI()
{
  final String uri = RDF.getURI() + "_345";
  final Property p = model.createProperty(uri);
  Assert.assertEquals(RDF.getURI(), p.getNameSpace());
  Assert.assertEquals("_345", p.getLocalName());
  Assert.assertEquals(uri, p.getURI());
}
origin: apache/jena

public void testCreatePropertyStrangeURITwoArgs()
{
  final String local = "_345";
  final Property p = model.createProperty(RDF.getURI(), local);
  Assert.assertEquals(RDF.getURI(), p.getNameSpace());
  Assert.assertEquals(local, p.getLocalName());
  Assert.assertEquals(RDF.getURI() + local, p.getURI());
}
origin: org.apache.jena/jena-core

public void testCreatePropertyStrangeURITwoArgs()
{
  final String local = "_345";
  final Property p = model.createProperty(RDF.getURI(), local);
  Assert.assertEquals(RDF.getURI(), p.getNameSpace());
  Assert.assertEquals(local, p.getLocalName());
  Assert.assertEquals(RDF.getURI() + local, p.getURI());
}
org.apache.jena.rdf.modelPropertygetLocalName

Javadoc

Returns the name of this property within its namespace.

Popular methods of Property

  • asNode
  • getURI
  • getNameSpace
    Returns the namespace associated with this property.
  • as
  • getModel
  • addProperty
  • asResource
  • getOrdinal
    Returns the ordinal value of a containment property.RDF containers use properties of the form _1, _2
  • canAs
  • inModel
  • isAnon
  • removeAll
  • isAnon,
  • removeAll

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 Plugins for Android Studio
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