本文整理汇总了Java中com.hp.hpl.jena.sparql.expr.NodeValue.nvEmptyString方法的典型用法代码示例。如果您正苦于以下问题:Java NodeValue.nvEmptyString方法的具体用法?Java NodeValue.nvEmptyString怎么用?Java NodeValue.nvEmptyString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.hp.hpl.jena.sparql.expr.NodeValue
的用法示例。
在下文中一共展示了NodeValue.nvEmptyString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: exec
import com.hp.hpl.jena.sparql.expr.NodeValue; //导入方法依赖的package包/类
@Override
public NodeValue exec(NodeValue v) {
Geometry g=GFUtils.read(v);
Vector3d normal;
try {
normal = Normal.normal(g);
Point3d p=new Point3d(normal.x,normal.y,normal.z);
return GFUtils.write(p);
} catch (GeometryException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return NodeValue.nvEmptyString;
}
}
示例2: exec
import com.hp.hpl.jena.sparql.expr.NodeValue; //导入方法依赖的package包/类
@Override
public NodeValue exec(NodeValue v1, NodeValue v2) {
Geometry g=GFUtils.read(v1);
double deep=v2.getDouble();
try {
Geometry geometry=Extrude.extrude(g, deep);
return GFUtils.write(geometry);
} catch (GeometryException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return NodeValue.nvEmptyString;
}
}
示例3: exec
import com.hp.hpl.jena.sparql.expr.NodeValue; //导入方法依赖的package包/类
@Override
public NodeValue exec(NodeValue v) {
Geometry g=GFUtils.read(v);
try {
Geometry projection=Projection.projectToXY(g);
return GFUtils.write(projection);
} catch (GeometryException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return NodeValue.nvEmptyString;
}
}
示例4: exec
import com.hp.hpl.jena.sparql.expr.NodeValue; //导入方法依赖的package包/类
@Override
public NodeValue exec(NodeValue v) {
Geometry g=GFUtils.read(v);
try {
Geometry projection=Projection.projectToPlane(g,new Plane(new Point3d(0,1,0),new Point3d(0,0,0),new Point3d(0,0,1)));
return GFUtils.write(projection);
} catch (GeometryException e) {
e.printStackTrace();
return NodeValue.nvEmptyString;
}
}
示例5: exec
import com.hp.hpl.jena.sparql.expr.NodeValue; //导入方法依赖的package包/类
@Override
public NodeValue exec(NodeValue v) {
Geometry g=GFUtils.read(v);
try {
Geometry projection=Projection.projectToPlane(g,new Plane(new Point3d(1,0,0),new Point3d(0,0,0),new Point3d(0,0,1)));
return GFUtils.write(projection);
} catch (GeometryException e) {
e.printStackTrace();
return NodeValue.nvEmptyString;
}
}
示例6: write
import com.hp.hpl.jena.sparql.expr.NodeValue; //导入方法依赖的package包/类
public static NodeValue write(Geometry g){
EwktWriter ew=new EwktWriter("");
try {
ew.writeRec(g);
return NodeValue.makeString(ew.getString());
} catch (WktWriteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return NodeValue.nvEmptyString;
}
}