本文整理了Java中org.apache.jena.rdf.model.Model.qnameFor()
方法的一些代码示例,展示了Model.qnameFor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Model.qnameFor()
方法的具体详情如下:
包路径:org.apache.jena.rdf.model.Model
类名称:Model
方法名:qnameFor
暂无
代码示例来源:origin: vivo-project/Vitro
@Override
public String qnameFor(String uri) {
return inner.qnameFor(uri);
}
代码示例来源:origin: apache/jena
@Override
public String qnameFor(final String uri) throws ReadDeniedException, AuthenticationRequiredException {
checkRead();
return holder.getBaseItem().qnameFor(uri);
}
代码示例来源:origin: apache/jena
private void generateDoctypeDeclaration( Model model, PrintWriter pw )
{
String rdfns = RDF.getURI();
String rdfRDF = model.qnameFor( rdfns + "RDF" );
if ( rdfRDF == null ) {
model.setNsPrefix("rdf",rdfns);
rdfRDF = "rdf:RDF";
}
Map<String, String> prefixes = model.getNsPrefixMap();
pw.print( "<!DOCTYPE " + rdfRDF +" [" );
for ( String prefix : prefixes.keySet() )
{
if ( isPredefinedEntityName( prefix ) )
{
continue;
}
pw.print(
newline + " <!ENTITY " + strForPrefix( prefix ) + " '" + Util.substituteEntitiesInEntityValue(
prefixes.get( prefix ) ) + "'>" );
}
pw.print( "]>" + newline );
}
代码示例来源:origin: org.apache.jena/jena-core
private void generateDoctypeDeclaration( Model model, PrintWriter pw )
{
String rdfns = RDF.getURI();
String rdfRDF = model.qnameFor( rdfns + "RDF" );
if ( rdfRDF == null ) {
model.setNsPrefix("rdf",rdfns);
rdfRDF = "rdf:RDF";
}
Map<String, String> prefixes = model.getNsPrefixMap();
pw.print( "<!DOCTYPE " + rdfRDF +" [" );
for ( String prefix : prefixes.keySet() )
{
if ( isPredefinedEntityName( prefix ) )
{
continue;
}
pw.print(
newline + " <!ENTITY " + strForPrefix( prefix ) + " '" + Util.substituteEntitiesInEntityValue(
prefixes.get( prefix ) ) + "'>" );
}
pw.print( "]>" + newline );
}
代码示例来源:origin: TopQuadrant/shacl
String qname = resource.getModel().qnameFor(resource.getURI());
if(qname != null) {
return qname;
代码示例来源:origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl
String qname = resource.getModel().qnameFor(resource.getURI());
if(qname != null) {
return qname;
内容来源于网络,如有侵权,请联系作者删除!