You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by emri mbiemri <em...@gmail.com> on 2022/12/11 10:17:38 UTC
density of GraphUtil not recognized
Dear community, I am trying to get some graph metrics using Apache
Jena's GraphUtil. But some functions like "density" of GraphUtil cannot be
recognized, or the package org.apache.jena.graph.Centrality cannot be
resolved. I am using Eclipse, my apache jena version is 3.14.0 within the
rdf4j depencey:
<groupId>org.eclipse.rdf4j</groupId>
<artifactId>rdf4j-storage</artifactId>
<version>3.5.0</version>
Any idea why some of the artifacts cannot be found?
Re: density of GraphUtil not recognized
Posted by Marco Neumann <ma...@gmail.com>.
oh well...
On Sun, Dec 11, 2022 at 6:44 PM emri mbiemri <em...@gmail.com>
wrote:
> The ChatGPT suggested using these kinds of solutions for getting some of
> the above-mentioned graph metrics.
> Anyway, is there any other tool that calculated some graph metrics on RDF
> graphs?
>
> On Sun, Dec 11, 2022 at 8:13 PM Andy Seaborne <an...@apache.org> wrote:
>
> >
> >
> > On 11/12/2022 13:15, emri mbiemri wrote:
> > > ok, thanks, but is there any function within Apache Jena that
> calculates
> > > the graph metrics such as centrality, density, and clustering
> > coefficient?
> >
> > No.
> >
> > What led you to thinking there was?
> >
> > Andy
> >
>
--
---
Marco Neumann
Re: density of GraphUtil not recognized
Posted by Andy Seaborne <an...@apache.org>.
On 11/12/2022 18:43, emri mbiemri wrote:
> The ChatGPT suggested using these kinds of solutions for getting some of
> the above-mentioned graph metrics.
Did it say "Jena"?
> Anyway, is there any other tool that calculated some graph metrics on RDF
> graphs?
Try a Google search.
Andy
> On Sun, Dec 11, 2022 at 8:13 PM Andy Seaborne <an...@apache.org> wrote:
>
>>
>>
>> On 11/12/2022 13:15, emri mbiemri wrote:
>>> ok, thanks, but is there any function within Apache Jena that calculates
>>> the graph metrics such as centrality, density, and clustering
>> coefficient?
>>
>> No.
>>
>> What led you to thinking there was?
>>
>> Andy
>>
>
Re: Re: density of GraphUtil not recognized
Posted by Lorenz Buehmann <bu...@informatik.uni-leipzig.de>.
Made my day ...
StackOverflow is already disallowing ChatGPT comments ...
there are of course tools for graph measures beyond Jena, e.g. you could
use Python rdflib which allows for converting the graph to a networkx
graph which in fact is a standard API for network analytics.
Or you use Apache Jena, convert the Jena model to a JGraphT directed
pseudo graph [1] and use JGraphT methods resp. its extensions
[1]
https://jgrapht.org/javadoc/org.jgrapht.core/org/jgrapht/graph/DirectedPseudograph.html
On 11.12.22 19:43, emri mbiemri wrote:
> The ChatGPT suggested using these kinds of solutions for getting some of
> the above-mentioned graph metrics.
> Anyway, is there any other tool that calculated some graph metrics on RDF
> graphs?
>
> On Sun, Dec 11, 2022 at 8:13 PM Andy Seaborne <an...@apache.org> wrote:
>
>>
>> On 11/12/2022 13:15, emri mbiemri wrote:
>>> ok, thanks, but is there any function within Apache Jena that calculates
>>> the graph metrics such as centrality, density, and clustering
>> coefficient?
>>
>> No.
>>
>> What led you to thinking there was?
>>
>> Andy
>>
Re: density of GraphUtil not recognized
Posted by emri mbiemri <em...@gmail.com>.
The ChatGPT suggested using these kinds of solutions for getting some of
the above-mentioned graph metrics.
Anyway, is there any other tool that calculated some graph metrics on RDF
graphs?
On Sun, Dec 11, 2022 at 8:13 PM Andy Seaborne <an...@apache.org> wrote:
>
>
> On 11/12/2022 13:15, emri mbiemri wrote:
> > ok, thanks, but is there any function within Apache Jena that calculates
> > the graph metrics such as centrality, density, and clustering
> coefficient?
>
> No.
>
> What led you to thinking there was?
>
> Andy
>
Re: density of GraphUtil not recognized
Posted by Andy Seaborne <an...@apache.org>.
On 11/12/2022 13:15, emri mbiemri wrote:
> ok, thanks, but is there any function within Apache Jena that calculates
> the graph metrics such as centrality, density, and clustering coefficient?
No.
What led you to thinking there was?
Andy
Re: density of GraphUtil not recognized
Posted by emri mbiemri <em...@gmail.com>.
ok, thanks, but is there any function within Apache Jena that calculates
the graph metrics such as centrality, density, and clustering coefficient?
On Sun, Dec 11, 2022 at 2:17 PM Andy Seaborne <an...@apache.org> wrote:
>
>
> On 11/12/2022 11:53, emri mbiemri wrote:
> > Hi Andy, thanks for the reply!
> >
> > What about the GraphUtil.density() function, any idea why it is not
> > recognized?
>
> because it is not in the Jena codebase (nor has it ever been in the
> codebase).
>
>
> https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/graph/GraphUtil.java
>
> Why do you think it would be there?
>
> > Concerning the RDF4J I think it includes all the relevant
> > apache jena jars.
>
> I would very surprised if it did.
>
> You can check:
> https://github.com/eclipse/rdf4j/
>
> Andy
>
> >
> > On Sun, Dec 11, 2022 at 12:31 PM Andy Seaborne <an...@apache.org> wrote:
> >
> >>
> >>
> >> On 11/12/2022 10:17, emri mbiemri wrote:
> >>> Dear community, I am trying to get some graph metrics using Apache
> >>> Jena's GraphUtil. But some functions like "density" of GraphUtil
> cannot
> >> be
> >>> recognized, or the package org.apache.jena.graph.Centrality cannot be
> >>> resolved.
> >>
> >> There is no org.apache.jena.graph.Centrality
> >>
> >>> I am using Eclipse, my apache jena version is 3.14.0 within the
> >>> rdf4j depencey:
> >>> <groupId>org.eclipse.rdf4j</groupId>
> >>> <artifactId>rdf4j-storage</artifactId>
> >>> <version>3.5.0</version>
> >>
> >> Different tool kit!
> >>
> >> org.eclipse.rdf4j artifacts come from the Eclipse Foundation project
> RDF4J
> >>
> >> https://rdf4j.org/
> >>
> >> (This is not related to whether you use the Eclipse IDE)
> >>
> >>>
> >>> Any idea why some of the artifacts cannot be found?
> >>>
> >>
> >> Andy
> >>
> >
>
Re: density of GraphUtil not recognized
Posted by Andy Seaborne <an...@apache.org>.
On 11/12/2022 11:53, emri mbiemri wrote:
> Hi Andy, thanks for the reply!
>
> What about the GraphUtil.density() function, any idea why it is not
> recognized?
because it is not in the Jena codebase (nor has it ever been in the
codebase).
https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/graph/GraphUtil.java
Why do you think it would be there?
> Concerning the RDF4J I think it includes all the relevant
> apache jena jars.
I would very surprised if it did.
You can check:
https://github.com/eclipse/rdf4j/
Andy
>
> On Sun, Dec 11, 2022 at 12:31 PM Andy Seaborne <an...@apache.org> wrote:
>
>>
>>
>> On 11/12/2022 10:17, emri mbiemri wrote:
>>> Dear community, I am trying to get some graph metrics using Apache
>>> Jena's GraphUtil. But some functions like "density" of GraphUtil cannot
>> be
>>> recognized, or the package org.apache.jena.graph.Centrality cannot be
>>> resolved.
>>
>> There is no org.apache.jena.graph.Centrality
>>
>>> I am using Eclipse, my apache jena version is 3.14.0 within the
>>> rdf4j depencey:
>>> <groupId>org.eclipse.rdf4j</groupId>
>>> <artifactId>rdf4j-storage</artifactId>
>>> <version>3.5.0</version>
>>
>> Different tool kit!
>>
>> org.eclipse.rdf4j artifacts come from the Eclipse Foundation project RDF4J
>>
>> https://rdf4j.org/
>>
>> (This is not related to whether you use the Eclipse IDE)
>>
>>>
>>> Any idea why some of the artifacts cannot be found?
>>>
>>
>> Andy
>>
>
Re: density of GraphUtil not recognized
Posted by emri mbiemri <em...@gmail.com>.
Hi Andy, thanks for the reply!
What about the GraphUtil.density() function, any idea why it is not
recognized? Concerning the RDF4J I think it includes all the relevant
apache jena jars.
On Sun, Dec 11, 2022 at 12:31 PM Andy Seaborne <an...@apache.org> wrote:
>
>
> On 11/12/2022 10:17, emri mbiemri wrote:
> > Dear community, I am trying to get some graph metrics using Apache
> > Jena's GraphUtil. But some functions like "density" of GraphUtil cannot
> be
> > recognized, or the package org.apache.jena.graph.Centrality cannot be
> > resolved.
>
> There is no org.apache.jena.graph.Centrality
>
> > I am using Eclipse, my apache jena version is 3.14.0 within the
> > rdf4j depencey:
> > <groupId>org.eclipse.rdf4j</groupId>
> > <artifactId>rdf4j-storage</artifactId>
> > <version>3.5.0</version>
>
> Different tool kit!
>
> org.eclipse.rdf4j artifacts come from the Eclipse Foundation project RDF4J
>
> https://rdf4j.org/
>
> (This is not related to whether you use the Eclipse IDE)
>
> >
> > Any idea why some of the artifacts cannot be found?
> >
>
> Andy
>
Re: density of GraphUtil not recognized
Posted by Andy Seaborne <an...@apache.org>.
On 11/12/2022 10:17, emri mbiemri wrote:
> Dear community, I am trying to get some graph metrics using Apache
> Jena's GraphUtil. But some functions like "density" of GraphUtil cannot be
> recognized, or the package org.apache.jena.graph.Centrality cannot be
> resolved.
There is no org.apache.jena.graph.Centrality
> I am using Eclipse, my apache jena version is 3.14.0 within the
> rdf4j depencey:
> <groupId>org.eclipse.rdf4j</groupId>
> <artifactId>rdf4j-storage</artifactId>
> <version>3.5.0</version>
Different tool kit!
org.eclipse.rdf4j artifacts come from the Eclipse Foundation project RDF4J
https://rdf4j.org/
(This is not related to whether you use the Eclipse IDE)
>
> Any idea why some of the artifacts cannot be found?
>
Andy