Refine search
@Override public String NAMESPACE() { return RDFS.getURI(); }
public static Property seeAlso() { return property( "seeAlso"); } public static Property subClassOf () { return property( "subClassOf"); }
public static Resource ContainerMembershipProperty() { return resource( "ContainerMembershipProperty"); } public static Resource Literal() { return resource( "Literal"); }
/** * Simplified printable name for a node */ public static String simplePrintString(Node n) { if (n instanceof Node_URI) { String uri = n.getURI(); int split = uri.lastIndexOf('#'); if (split == -1) { split = uri.lastIndexOf('/'); if (split == -1) split = -1; } String ns = uri.substring(0, split+1); String prefix = ""; if (ns.equals(RDF.getURI())) { prefix = "rdf:"; } else if (ns.equals(RDFS.getURI())) { prefix = "rdfs:"; } return prefix + uri.substring(split+1); } else { return n.toString(); } }
/** * Simplified printable name for a node */ public static String simplePrintString(Node n) { if (n instanceof Node_URI) { String uri = n.getURI(); int split = uri.lastIndexOf('#'); if (split == -1) { split = uri.lastIndexOf('/'); if (split == -1) split = -1; } String ns = uri.substring(0, split+1); String prefix = ""; if (ns.equals(RDF.getURI())) { prefix = "rdf:"; } else if (ns.equals(RDFS.getURI())) { prefix = "rdfs:"; } return prefix + uri.substring(split+1); } else { return n.toString(); } }
@Override public String NAMESPACE() { return RDFS.getURI(); }
public static Property comment() { return property( "comment"); } public static Property domain() { return property( "domain"); }
public static Resource ContainerMembershipProperty() { return resource( "ContainerMembershipProperty"); } public static Resource Literal() { return resource( "Literal"); }
public void testNonRDFElementURIsHaveOrdinal0() { testOrdinalValue(0, "foo:bar"); testOrdinalValue(0, "foo:bar1"); testOrdinalValue(0, "foo:bar2"); testOrdinalValue(0, RDFS.getURI() + "_17"); }
public static Property label() { return property( "label"); } public static Property isDefinedBy() { return property( "isDefinedBy"); }
public static Resource Class() { return resource( "Class"); } public static Resource Datatype() { return resource( "Datatype"); }
public void testNonRDFElementURIsHaveOrdinal0() { testOrdinalValue(0, "foo:bar"); testOrdinalValue(0, "foo:bar1"); testOrdinalValue(0, "foo:bar2"); testOrdinalValue(0, RDFS.getURI() + "_17"); }
public static Property subClassOf () { return property( "subClassOf"); } public static Property subPropertyOf () { return property( "subPropertyOf"); }
public static Resource Container () { return resource( "Container"); } public static Resource ContainerMembershipProperty()
public static void init() { if ( initialized ) return ; synchronized (initLock) { if ( initialized ) { JenaSystem.logLifecycle("JenaCore.init - skip") ; return ; } initialized = true ; JenaSystem.logLifecycle("JenaCore.init - start") ; // Initialization // Touch classes with constants. // This isn't necessary but it makes it more deterministic. // These constants are reused in various places. RDF.getURI() ; RDFS.getURI() ; OWL.getURI() ; JenaSystem.logLifecycle("JenaCore.init - finish") ; } } }
public VClass getBottomConcept() { VClass bottom = new VClass(); if (getOntModel().getProfile().NAMESPACE().equals(RDFS.getURI())) { return null; } else { bottom.setURI((getOntModel().getProfile().NOTHING().getURI())); } if (bottom.getURI() != null) { bottom.setName(bottom.getLocalName()); return bottom; } else { return null; } }
public static Property isDefinedBy() { return property( "isDefinedBy"); } public static Property range() { return property( "range"); }