Re: scientific citation?

2013-08-14 Thread Bahador(reza)? OFOGHI
Thanks to Andy and Joshua,
 
I will see the references you have mentioned. 
 
I do not need to explain myself to people who think are the only ones who 
understand the research environment. I have been in this business for enough 
time.
 
BO.

Bahador(reza)? OFOGHI, PhD
Major: Information Technology

 


 From: davejrdn 
To: "users@jena.apache.org"  
Sent: Wednesday, 14 August 2013 11:21 PM
Subject: Re: scientific citation?
  

 
Sorry, I did not mean to come across so poorly. I mainly wanted to point out 
that one does not always need to use a reference and one can simply refer to 
the web site. But I'll admit I have run across a number of people that feel 
that they just need to throw in some references to things they have never read, 
just to have some references.
 
This article is probably good, I have not read it yet. But it is also 9 years 
old. It would be useful to have a web page on the Jena site that would provide 
links to any/all such articles that have been published. It would also be good 
to have some more articles written that are more recent, reflecting the current 
state of Jena.

From: Andy Seaborne 
To: users@jena.apache.org 
Sent: Wednesday, August 14, 2013 8:55 AM
Subject: Re: scientific citation?


On 14/08/13 13:49, Joshua TAYLOR wrote:
> On Wed, Aug 14, 2013 at 7:17 AM, David Jordan  wrote:
>> If you have not read any "scientific research papers" that address things 
>> you have placed in your research paper, then you don't include a reference. 
>> There are papers on Jena out there, but just including them for the sake of 
>> having some is bogus and unethical. You just want the full bibliographic 
>> info, so it sounds like you don't intend to even read it. Surely you read 
>> the online Jena documentation, reference that.
>
> I interpreted this request as more of typical ettiquette, along the
> lines of "I've been using the system that you built, and have
> benefited from the research and work that you've done.  How would you
> prefer to be cited?"  Much in the way that, were I to cite this email
> thread, I'd ask, "Mr. Jordan, when I cite mailing list posts, do you
> prefer D. Jordan or David Jordan, or perhaps something else?"  This
> can be especially important in computer-science related fields where
> many conference proceedings articles are freely available, but the
> better journal version is behind a paywall;  it's nice to give the
> authors a chance to say "Cite the journal verison, please! Here's an
> offprint that you can look at!"
>
> At any rate, I don't know what citations the Jena developers prefer to
> be used, but one might be:
>
> Jena: Jena: Implementing the Semantic Web Recommendations
> http://www.hpl.hp.com/techreports/2003/HPL-2003-146.pdf
> (notice that this is a techreport, but the developers might know that
> it was published in a conference or journal, and the appropriate
> citation therefor)

WWW2004:

http://www2004.wwwconference.org/docs/2p74.pdf

    Andy

>
>
>
>>
>>
>> On Aug 13, 2013, at 11:44 PM, Bahador(reza)? OFOGHI wrote:
>>
>>> Hi,
>>>
>>> I wonder if there is any scientific research paper/report published on jena 
>>> which can be referenced in a reserch paper I am writing up? If yes, can 
>>> anyone please send the full bibliographic info?
>>>
>>> BO
>>
>
>
>

Naming entities

2013-08-14 Thread David Moss
This is a fairly basic question, but how do others go about naming entities in 
an RDF graph?

The semantic web evangelists are keen on URIs that mean something ie 
.

This sounds great but in practice it doesn't scale. There are many people named 
David Moss in the world.

It is possible to have URIs such as  
 ... , but 
differentiating between them is not a human readable task. It also becomes 
problematic in tracking the highest number of each entity name so additions can 
be made to the graph.

I first tried using blank nodes as entity identifiers but they are no good for 
the purpose as searching is difficult and they are not supposed to be used 
outside the environment in which they are created. They are supposed to be 
internal only references for convenience of the machine. They are also the 
antithesis of human readable.

I currently maintainable next_id entity in my graph and use and update its 
value to obtain entity names, ending up with , 
 and  etc.

This is not exactly human readable, but I can't think of any naming policy that 
maintains the dream of human readable identifiers yet scales.

How are others addressing this issue?




Re: Multiple derivations for backward chaining?

2013-08-14 Thread Joshua TAYLOR
On Wed, Aug 14, 2013 at 12:12 PM, Niranjan Balasubramanian
 wrote:
> Thanks for this example. From your output it seems that rule 1is derives the 
> statement (:iron, :conducts, :electricity) and rule 2 derives (:iron, 
> :conductorof, :electricity)
>
> I am more interested in finding out the possible ways in which the query 
> statement:  (:iron, :conductorOf, :electricity) can be derived.
>
> Given the following rules:
>
> @prefix : http://myexample.org/
> [rule1: (?a :conductorOf :electricity) <- (?a rdf:type :Metal) print(rule1 ?a 
> )]
> [rule2: (?x :conductorOf ?z) <- (?x :conducts ?z) print( rule2 ?x ?z )]
> (:iron rdf:type :Metal) <- .
> (:iron :conducts :electricity) <- .
>
> I'd expect to see both rule 1 and rule 2 as two possible derivations.

I think you've misunderstood my code, or its output.  I used the same
rules that you provided. Both rule1 and rule2 derive triples that have
:conductorOf as their predicate:

  "[rule1: (?a :conductorOf :electricity) <- (?a rdf:type :Metal)
print( rule1 ?a )]\n" +
  "[rule2: (?x :conductorOf ?z) <- (?x :conducts ?z) print( rule2 ?x ?z )]\n" +

When these rules fire, they are producing triples of the form

  ?subject :conductorOf ?object

Thus, the lines from the output

  rule1 http://myexample.org/iron
  rule2 http://myexample.org/iron http://myexample.org/electricity

indicate that rule1 was fired with ?a bound to :iron, producing the
triple ":iron :conductorOf :electricity", and that rule2 was fired
with ?x bound to :iron, and ?z bound to :electricity, producing the
triple ":iron :conductorOf :electricity".   So it is not the case that
"rule 1is derives the statement (:iron, :conducts, :electricity) and
rule 2 derives (:iron, :conductorof, :electricity)".  Instead, the
output correspond to the two ways that that triple can be derived.

> As Dave Reynolds pointed out in his reply this seems not doable with Jena as 
> it stops inference as soon as the answer is found.

If you ask specifically for the triple "iron conductorOf electricity",
the rule engine will stop as soon as one derivation is found.
However, if you ask for all triples (as I did in my example), the
rules for both derivations will fire (and so we saw output for both
rule1 and rule2).

I agree that this method is nor perfect, as you do not get the
*entire* derivation, but just the final step of it, but it does
provide *some* way of finding out the different ways in which a triple
of interest can be derived.

//JT
-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/


Re: Multiple derivations for backward chaining?

2013-08-14 Thread Niranjan Balasubramanian
Joshua,

Thanks for this example. From your output it seems that rule 1is derives the 
statement (:iron, :conducts, :electricity) and rule 2 derives (:iron, 
:conductorof, :electricity)

I am more interested in finding out the possible ways in which the query 
statement:  (:iron, :conductorOf, :electricity) can be derived.

Given the following rules:

@prefix : http://myexample.org/
[rule1: (?a :conductorOf :electricity) <- (?a rdf:type :Metal) print(rule1 ?a )]
[rule2: (?x :conductorOf ?z) <- (?x :conducts ?z) print( rule2 ?x ?z )]
(:iron rdf:type :Metal) <- .
(:iron :conducts :electricity) <- .


I'd expect to see both rule 1 and rule 2 as two possible derivations. 

As Dave Reynolds pointed out in his reply this seems not doable with Jena as it 
stops inference as soon as the answer is found.

~ Niranjan.

On Aug 12, 2013, at 1:28 PM, Joshua TAYLOR wrote:

> On Mon, Aug 12, 2013 at 4:19 PM, Joshua TAYLOR  wrote:
>> 
> 
> Sorry for so much replying to my own noise, but I'm twice mistaken
> now.  The problem with the original ruleset is that Jena rules don't
> support the abbreviation 'a' for `rdf:type` and I'd naïvely copied the
> data into the rules. If you have a ruleset like
> 
> @prefix : http://myexample.org/
> [rule1: (?a :conductorOf :electricity) <- (?a rdf:type :Metal) print(
> rule1 ?a )]
> [rule2: (?x :conductorOf ?z) <- (?x :conducts ?z) print( rule2 ?x ?z )]
> (:iron rdf:type :Metal) <- .
> (:iron :conducts :electricity) <- .
> 
> and you create an infModel based on it, and iterate through the
> statements in the model, both rules will get triggered, as seen in the
> output:
> 
> [http://myexample.org/iron,
> http://www.w3.org/1999/02/22-rdf-syntax-ns#type,
> http://myexample.org/Metal]
> [http://myexample.org/iron, http://myexample.org/conducts,
> http://myexample.org/electricity]
> rule1 http://myexample.org/iron
> [http://myexample.org/iron, http://myexample.org/conductorOf,
> http://myexample.org/electricity]
> rule2 http://myexample.org/iron http://myexample.org/electricity
> 
> which has three (as expected) triples, and two lines generated by the
> print statements.  The output from print, since it's the last term in
> the rule, means that the rule has fired successfully and derived the
> appropriate triple.  Here's code to reproduce:
> 
> import java.io.BufferedReader;
> import java.io.ByteArrayInputStream;
> import java.io.IOException;
> import java.io.InputStream;
> import java.io.InputStreamReader;
> 
> import com.hp.hpl.jena.rdf.model.InfModel;
> import com.hp.hpl.jena.rdf.model.Model;
> import com.hp.hpl.jena.rdf.model.ModelFactory;
> import com.hp.hpl.jena.rdf.model.StmtIterator;
> import com.hp.hpl.jena.reasoner.Reasoner;
> import com.hp.hpl.jena.reasoner.rulesys.GenericRuleReasoner;
> import com.hp.hpl.jena.reasoner.rulesys.Rule;
> 
> 
> public class DerivationsFinder {
>   
>   final static String conductorRules = ""+
>   "@prefix : http://myexample.org/\n"; +
>   "[rule1: (?a :conductorOf :electricity) <- (?a rdf:type 
> :Metal)
> print( rule1 ?a )]\n" +
>   "[rule2: (?x :conductorOf ?z) <- (?x :conducts ?z) 
> print( rule2 ?x ?z )]\n" +
>   "(:iron rdf:type :Metal) <- .\n" +
>   "(:iron :conducts :electricity) <- .\n" +
>   "";
>   
>   public static void main(String[] args) throws IOException {
>   try ( final InputStream in = new ByteArrayInputStream(
> conductorRules.getBytes() );
> final InputStreamReader reader = new 
> InputStreamReader( in );
> final BufferedReader buff = new BufferedReader( 
> reader ) ) {
> 
>   final Reasoner reasoner = new GenericRuleReasoner( 
> Rule.parseRules(
> Rule.rulesParserFromReader( buff )));
>   final Model model = ModelFactory.createDefaultModel();
>   final InfModel infModel = ModelFactory.createInfModel( 
> reasoner, model );
>   
>   for ( final StmtIterator it = 
> infModel.listStatements(); it.hasNext(); ) {
>   System.out.println( it.next() );
>   }
>   }
>   }
> }
> 
> 
> -- 
> Joshua Taylor, http://www.cs.rpi.edu/~tayloj/



Re: scientific citation?

2013-08-14 Thread davejrdn
 
Sorry, I did not mean to come across so poorly. I mainly wanted to point out 
that one does not always need to use a reference and one can simply refer to 
the web site. But I'll admit I have run across a number of people that feel 
that they just need to throw in some references to things they have never read, 
just to have some references.
 
This article is probably good, I have not read it yet. But it is also 9 years 
old. It would be useful to have a web page on the Jena site that would provide 
links to any/all such articles that have been published. It would also be good 
to have some more articles written that are more recent, reflecting the current 
state of Jena.

From: Andy Seaborne 
To: users@jena.apache.org 
Sent: Wednesday, August 14, 2013 8:55 AM
Subject: Re: scientific citation?


On 14/08/13 13:49, Joshua TAYLOR wrote:
> On Wed, Aug 14, 2013 at 7:17 AM, David Jordan  wrote:
>> If you have not read any "scientific research papers" that address things 
>> you have placed in your research paper, then you don't include a reference. 
>> There are papers on Jena out there, but just including them for the sake of 
>> having some is bogus and unethical. You just want the full bibliographic 
>> info, so it sounds like you don't intend to even read it. Surely you read 
>> the online Jena documentation, reference that.
>
> I interpreted this request as more of typical ettiquette, along the
> lines of "I've been using the system that you built, and have
> benefited from the research and work that you've done.  How would you
> prefer to be cited?"  Much in the way that, were I to cite this email
> thread, I'd ask, "Mr. Jordan, when I cite mailing list posts, do you
> prefer D. Jordan or David Jordan, or perhaps something else?"  This
> can be especially important in computer-science related fields where
> many conference proceedings articles are freely available, but the
> better journal version is behind a paywall;  it's nice to give the
> authors a chance to say "Cite the journal verison, please! Here's an
> offprint that you can look at!"
>
> At any rate, I don't know what citations the Jena developers prefer to
> be used, but one might be:
>
> Jena: Jena: Implementing the Semantic Web Recommendations
> http://www.hpl.hp.com/techreports/2003/HPL-2003-146.pdf
> (notice that this is a techreport, but the developers might know that
> it was published in a conference or journal, and the appropriate
> citation therefor)

WWW2004:

http://www2004.wwwconference.org/docs/2p74.pdf

    Andy

>
>
>
>>
>>
>> On Aug 13, 2013, at 11:44 PM, Bahador(reza)? OFOGHI wrote:
>>
>>> Hi,
>>>
>>> I wonder if there is any scientific research paper/report published on jena 
>>> which can be referenced in a reserch paper I am writing up? If yes, can 
>>> anyone please send the full bibliographic info?
>>>
>>> BO
>>
>
>
>

Re: scientific citation?

2013-08-14 Thread Andy Seaborne

On 14/08/13 13:49, Joshua TAYLOR wrote:

On Wed, Aug 14, 2013 at 7:17 AM, David Jordan  wrote:

If you have not read any "scientific research papers" that address things you 
have placed in your research paper, then you don't include a reference. There are papers 
on Jena out there, but just including them for the sake of having some is bogus and 
unethical. You just want the full bibliographic info, so it sounds like you don't intend 
to even read it. Surely you read the online Jena documentation, reference that.


I interpreted this request as more of typical ettiquette, along the
lines of "I've been using the system that you built, and have
benefited from the research and work that you've done.  How would you
prefer to be cited?"  Much in the way that, were I to cite this email
thread, I'd ask, "Mr. Jordan, when I cite mailing list posts, do you
prefer D. Jordan or David Jordan, or perhaps something else?"  This
can be especially important in computer-science related fields where
many conference proceedings articles are freely available, but the
better journal version is behind a paywall;  it's nice to give the
authors a chance to say "Cite the journal verison, please! Here's an
offprint that you can look at!"

At any rate, I don't know what citations the Jena developers prefer to
be used, but one might be:

Jena: Jena: Implementing the Semantic Web Recommendations
http://www.hpl.hp.com/techreports/2003/HPL-2003-146.pdf
(notice that this is a techreport, but the developers might know that
it was published in a conference or journal, and the appropriate
citation therefor)


WWW2004:

http://www2004.wwwconference.org/docs/2p74.pdf

Andy








On Aug 13, 2013, at 11:44 PM, Bahador(reza)? OFOGHI wrote:


Hi,

I wonder if there is any scientific research paper/report published on jena 
which can be referenced in a reserch paper I am writing up? If yes, can anyone 
please send the full bibliographic info?

BO










Re: scientific citation?

2013-08-14 Thread Joshua TAYLOR
On Wed, Aug 14, 2013 at 7:17 AM, David Jordan  wrote:
> If you have not read any "scientific research papers" that address things you 
> have placed in your research paper, then you don't include a reference. There 
> are papers on Jena out there, but just including them for the sake of having 
> some is bogus and unethical. You just want the full bibliographic info, so it 
> sounds like you don't intend to even read it. Surely you read the online Jena 
> documentation, reference that.

I interpreted this request as more of typical ettiquette, along the
lines of "I've been using the system that you built, and have
benefited from the research and work that you've done.  How would you
prefer to be cited?"  Much in the way that, were I to cite this email
thread, I'd ask, "Mr. Jordan, when I cite mailing list posts, do you
prefer D. Jordan or David Jordan, or perhaps something else?"  This
can be especially important in computer-science related fields where
many conference proceedings articles are freely available, but the
better journal version is behind a paywall;  it's nice to give the
authors a chance to say "Cite the journal verison, please! Here's an
offprint that you can look at!"

At any rate, I don't know what citations the Jena developers prefer to
be used, but one might be:

Jena: Jena: Implementing the Semantic Web Recommendations
http://www.hpl.hp.com/techreports/2003/HPL-2003-146.pdf
(notice that this is a techreport, but the developers might know that
it was published in a conference or journal, and the appropriate
citation therefor)



>
>
> On Aug 13, 2013, at 11:44 PM, Bahador(reza)? OFOGHI wrote:
>
>> Hi,
>>
>> I wonder if there is any scientific research paper/report published on jena 
>> which can be referenced in a reserch paper I am writing up? If yes, can 
>> anyone please send the full bibliographic info?
>>
>> BO
>



-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/


Re: scientific citation?

2013-08-14 Thread David Jordan

If you have not read any "scientific research papers" that address things you 
have placed in your research paper, then you don't include a reference. There 
are papers on Jena out there, but just including them for the sake of having 
some is bogus and unethical. You just want the full bibliographic info, so it 
sounds like you don't intend to even read it. Surely you read the online Jena 
documentation, reference that.


On Aug 13, 2013, at 11:44 PM, Bahador(reza)? OFOGHI wrote:

> Hi, 
>  
> I wonder if there is any scientific research paper/report published on jena 
> which can be referenced in a reserch paper I am writing up? If yes, can 
> anyone please send the full bibliographic info?
>  
> BO