Java 类com.hp.hpl.jena.rdf.model.impl.PropertyImpl 实例源码

项目:OntoMapper    文件:TestOntologyMapper.java   
private List<StatementsPair> fakeMapping(){
    Resource subjectPattern = new ResourceImpl();
    Property predPattern = new PropertyImpl("http://www.recshop.fake/cd#year");
    RDFNode objectPattern = new ResourceImpl();
    StatementPattern pattern = new StatementPattern(subjectPattern, predPattern, objectPattern,
                                    true,false,true);

    Resource subject = new ResourceImpl();
    Property pred = new PropertyImpl("http://www.recshop.fake/new#year");
    RDFNode object = new ResourceImpl();
    StatementPattern replacement = new StatementPattern(subject, pred, object,
                                    true,false,true);

    return asList( new StatementsPair(pattern, replacement) );
}
项目:CSV2LOD    文件:CourseLog.java   
public static Property propertyForName(String name)
{
    return new PropertyImpl(uri, name);
}
项目:CSV2LOD    文件:CourseLog.java   
public static Property propertyForName(String name)
{
    return new PropertyImpl(uri, name);
}