Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Obtaining only object's from Model

$
0
0
Hi All,
I get a results stream from Fuseki as follows

SPARQL_Rresult.getModel()

for clarity, then I do model.toString() the results stream looks like this

<ModelCom {mheq:ModelTA_Horizontal_Belt_Conveyor @rdfs:comment "The
ModelTA_Horizontal_Belt_Conveyor individual is a representation of the
product located a
http://www.gilmorekramer.com/more_info/hytrol_ta_conveyor/hytrol_ta_conveyor.shtml.
Data type propoerty associations are made in accordance with the power
calculation methodology located in "ENERGY MANAGEMENT
SERIES 17, FOR INDUSTRY COMMERCE AND INSTITUTIONS, Materials Handling and
On-Site Transportation Equipment, Canada."^^
http://www.w3.org/2001/XMLSchema#string;
mheq:ModelTA_Horizontal_Belt_Conveyor @mheq:hasConveyorProductLoading
"36.0"^^http://www.w3.org/2001/XMLSchema#double;
mheq:ModelTA_Horizontal_Belt_Conveyor @mheq:hasConveyorLength "30.0"^^
http://www.w3.org/2001/XMLSchema#double;
mheq:ModelTA_Horizontal_Belt_Conveyor @mheq:hasConveyorSpeed "0.508"^^
http://www.w3.org/2001/XMLSchema#double;
mheq:ModelTA_Horizontal_Belt_Conveyor @rdf:type mheq:BeltConveyor;
mheq:ModelTA_Horizontal_Belt_Conveyor @rdf:type owl:NamedIndividual} | [
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#ModelTA_Horizontal_Belt_Conveyor,
http://www.w3.org/2000/01/rdf-schema#comment, "The
ModelTA_Horizontal_Belt_Conveyor individual is a representation of the
product located a
http://www.gilmorekramer.com/more_info/hytrol_ta_conveyor/hytrol_ta_conveyor.shtml.
Data type propoerty associations are made in accordance with the power
calculation methodology located in "ENERGY MANAGEMENT
SERIES 17, FOR INDUSTRY COMMERCE AND INSTITUTIONS, Materials Handling and
On-Site Transportation Equipment, Canada."^^
http://www.w3.org/2001/XMLSchema#string] [
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#ModelTA_Horizontal_Belt_Conveyor,
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#hasConveyorProductLoading,
"36.0"^^http://www.w3.org/2001/XMLSchema#double] [
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#ModelTA_Horizontal_Belt_Conveyor,
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#hasConveyorLength,
"30.0"^^http://www.w3.org/2001/XMLSchema#double] [
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#ModelTA_Horizontal_Belt_Conveyor,
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#hasConveyorSpeed,
"0.508"^^http://www.w3.org/2001/XMLSchema#double] [
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#ModelTA_Horizontal_Belt_Conveyor,
http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#BeltConveyor]

http://eil.stanford.edu:443/svn/eil-repo/Users/Lewis/ontology/MaterialHandlingEquipment.owl#ModelTA_Horizontal_Belt_Conveyor,
http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
http://www.w3.org/2002/07/owl#NamedIndividual]>

what I am interested here is the following

#hasConveyorProductLoading, "36.0"
#hasConveyorLength, "30.0"
#hasConveyorSpeed, "0.508"

I want to use the object data type values as input for an Apache CXF
Webservice.
What I wonder, is what methods I can use from Model [0] or ModelCon [1] to
just get the object values?

Thank you very much
Lewis

[0]
http://jena.apache.org/documentation/javadoc/jena/index.html?com/hp/hpl/jena/rdf/model/Model.html
[1]
http://jena.apache.org/documentation/javadoc/jena/index.html?com/hp/hpl/jena/rdf/model/ModelCon.html

Viewing all articles
Browse latest Browse all 5648

Trending Articles