Discussion:
Two Models handling
neha gupta
2016-10-29 10:49:41 UTC
Permalink
I have ontology in which I want to add Team wins and goals. In this
ontology I uses only the current wins using:
team.setPropertyValue() as it over write old data.

I also need to keep track of previous team wins, goals etc so I want to
store it in another owl file and will use
team.addLiteral(). I will use another model for that i-e model2

But I dont know how to write that specific values to second ontology. I
mean I will have team.setPropertyValue() in my main model and will be
stored in my main owl file. But how can I store team.addLiteral() in my
second owl file using model2 ?

my main model to write in file is at the end of code is :
infmodel.write(writer, "RDF/XML"); //Because I used rules
neha gupta
2016-10-29 11:08:46 UTC
Permalink
I mean my main issue and question is how to write few methods like
team.addLiteral() to the second model.?
Post by neha gupta
I have ontology in which I want to add Team wins and goals. In this
team.setPropertyValue() as it over write old data.
I also need to keep track of previous team wins, goals etc so I want to
store it in another owl file and will use
team.addLiteral(). I will use another model for that i-e model2
But I dont know how to write that specific values to second ontology. I
mean I will have team.setPropertyValue() in my main model and will be
stored in my main owl file. But how can I store team.addLiteral() in my
second owl file using model2 ?
infmodel.write(writer, "RDF/XML"); //Because I used rules
Lorenz B.
2016-10-30 12:02:08 UTC
Permalink
What about simply using the second model and add the statement?

https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/rdf/model/ModelCon.html#add-org.apache.jena.rdf.model.Resource-org.apache.jena.rdf.model.Property-java.lang.String-org.apache.jena.datatypes.RDFDatatype-
Post by neha gupta
I mean my main issue and question is how to write few methods like
team.addLiteral() to the second model.?
Post by neha gupta
I have ontology in which I want to add Team wins and goals. In this
team.setPropertyValue() as it over write old data.
I also need to keep track of previous team wins, goals etc so I want to
store it in another owl file and will use
team.addLiteral(). I will use another model for that i-e model2
But I dont know how to write that specific values to second ontology. I
mean I will have team.setPropertyValue() in my main model and will be
stored in my main owl file. But how can I store team.addLiteral() in my
second owl file using model2 ?
infmodel.write(writer, "RDF/XML"); //Because I used rules
--
Lorenz BÃŒhmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center
Continue reading on narkive:
Loading...