Re: density of GraphUtil not recognized

2022-12-11 Thread emri mbiemri
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 wrote: > > > On 11/12/2022 13:15, emri mbie

Re: density of GraphUtil not recognized

2022-12-11 Thread emri mbiemri
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 wrote: > > > On 11/12/2022 11:53, emri mbiemri wrote: > > Hi Andy, thanks for the repl

Re: density of GraphUtil not recognized

2022-12-11 Thread emri mbiemri
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 wrote: > > > On 11/12/2022 10:17, emri mbie

density of GraphUtil not recognized

2022-12-11 Thread emri mbiemri
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

Getting graph metrics from an RDF dataset

2022-11-17 Thread emri mbiemri
Dear community, I would like to know if there is any tool on how I can get different graph metrics from an RDF dataset, like graph size, graph degree set, graph max/min size, graph density, etc. It can be probably for a single RDF graph but would be much better if the tool can get these metrics

Recursive/Property path query help

2022-05-31 Thread emri mbiemri
Dear community, I want to ask if any can find the correct query in the below file[1] on how to get the entire path (backward and forward) of Controls where a specific value like "Client" is at least within one of the "Controls" recursion dataset value. The "Controls" property is a recursive

Recursive queries in SPARQL

2022-04-11 Thread emri mbiemri
Hello community, I am wondering if there is yet any implementation of a recursive query operator in SPARQL? If yes then how can I implement it on RDF graphs? I have seen a publication that offers the recursion operator for SPARQL: https://content.iospress.com/articles/semantic-web/sw200401 but

Re: Trasforming and quering RDFs

2022-01-19 Thread emri mbiemri
s-ml > > Subject: Re: Trasforming and quering RDFs > > > > Hi, > > > > SPARQL is an RDF query language, so no. > > > > But there are tools that can help: > > https://github.com/AtomGraph/JSON2RDF > > https://sparql-anything.cc > > > >

Trasforming and quering RDFs

2022-01-18 Thread emri mbiemri
Dears, In order to have a more scalable knowledge base and easy to query, I have converted JSON files [1] to RDFgraphs [2]. I am trying to get all "Datatype" from "ViewModel" which has a "Type":1. The issue is I cannot find the Type: 1 within the RDF file and if so, I don't know how to query the

How much can RDF graph scale

2021-12-20 Thread emri mbiemri
Dear all, I am using RDF graphs for persisting my domain information, I am interested to know if there is any study or experiment conducted so far that measures the scalability of an RDF graph? I want to know if I can say that my repository scales since it is RDF-based and why? I have converted

Convert JSON to RDF with Jena

2021-12-20 Thread emri mbiemri
Hello all, I would like to ask if there is any method to directly convert the below JSON file to an RDF graph? If so then how can I do it? https://github.com/iliriani/iliriangit/blob/master/CustomerForm.form%20(1).xml

K-fold validation on TDB

2021-12-15 Thread emri mbiemri
Hello all, I am interested to conduct a k-fold validation for an algorithm that uses TDB as its database. The stored graph is weighted based on some criteria. The point is that when performing k-fold cross validation I have for each iteration (k-times) to create the TDP repo, to load the training

Loading error on Fueski

2021-08-16 Thread emri mbiemri
Hello, So far I have worked without any problem on Jena Fuseki server, but when I add a very simple node to my dataset then I cannot load it again? I am getting this error: Result: failed with message "Server Error". I am using Jena Fuseki 3.17 on Windows 10. How can I fix this issue, and

Inserting support a given model

2021-08-14 Thread emri mbiemri
Dear all, In the given RDF model: https://github.com/iliriani/Test/blob/main/Notebook.rdf I am trying to find a way on how to insert with SPARQL a 5 node within an node where the is "Notebook" and is "Evaluation". Same also, I want to add 2 in the where is "Student" and is "Evaluation"

A single huge RDF or a lot small ones

2021-06-28 Thread emri mbiemri
Dear all, I am trying to create a knowledge base of thousands of RDF for a model recommendation program. My question is if it is better to merge all RDFs into a single RDF file so I have a single huge graph-based repository and persist this to TDB. Or, is it better to persist directly all RDFs

Re: Implementing 2-grams with SPARQL

2021-06-03 Thread emri mbiemri
erms like "2-grams" > > My suggestion and that's in my opinion the only way to get useful help > here: > > a) provide a minimal sample of the data, and please not in RDF/XML but > Turtle or N-Triples > b) state what things exactly you're interested in, also be as precise as

Implementing 2-grams with SPARQL

2021-06-01 Thread emri mbiemri
Dears, I have a query like this: --- SELECT DISTINCT ?o WHERE { ?s ?p "Notebook". ?s | ?o .} --- This way I can query all classes related to class "Notebook".

Re: Re: SPARQL query on a specific RDF format

2021-04-29 Thread emri mbiemri
||-| > > But I don't see how the other two things ('Evaluations', 'User') would > be related to the class ... > > By the way, also asked and answered at SO: > https://stackoverflow.com/questions/67298506/sparql-query-on-a-specific-rdf-format > > On 27.04.

Re: Re: SPARQL query on a specific RDF format

2021-04-27 Thread emri mbiemri
Thanks a lot for your reply. The data model is the same: https://github.com/iliriani/Test/blob/main/Notebook.rdf The issue is just that how to get belonging of a given ? For instance, as I said if I query for the attributes of class "Teacher" I should get the result: - id - Emri

Re: Re: SPARQL query on a specific RDF format

2021-04-27 Thread emri mbiemri
s "Teacher" this results: - id - Emri - Mbiemri - Lendet - Evaluations - User On 2021/04/27 13:41:31, Lorenz Buehmann wrote: > Maybe I'm mixing up things, but didn't have the same question(s) and > data model some time ago? > > On 27.04.21 15:11, emri mbiemri wrote:

Re: SPARQL query on a specific RDF format

2021-04-27 Thread emri mbiemri
quot;Teacher" in > a couple of places. > > Try writing the file out in a format that is easier to look at: > > Command line: > > riot --pretty Turtle Notebook.rdf > > To query for all classes: > > sparql --data ~/Desktop/Notebook.rdf 'SELECT DISTINCT ?T

SPARQL query on a specific RDF format

2021-04-27 Thread emri mbiemri
! For instance, I want to get all attributes of class "Teacher", it should return me: - id - Emri - Mbiemri - Lendet - Evaluations - User

Re: Triples not initialized after FILTER on SPARQL

2021-04-01 Thread emri mbiemri
error is the triple pattern > > ?s <http://www.w3.org/TR/html4/Class1> ?class . > > > what is the idea behind this? Is there really a property in the > data? If not and if you want to get an instance of the Class > you have to use > > ?s a <http://w

Triples not initialized after FILTER on SPARQL

2021-03-31 Thread emri mbiemri
Dear all, I am trying to query something from an RDF/XML file with SPARQL but when I try queries like this: SELECT DISTINCT ?class WHERE { ?s ?p ?attr . FILTER regex(?attr , "Emri") . ?s ?class . it should

Using Levenstein distance within SPARQL

2021-03-27 Thread emri mbiemri
Hi, I am interested to know if there is any way I could use Levenstein distance within a SPARQL query. Let's say I want to select only the objects that have a Levenstein distance < 3. I have seen a function on a side that says LEVENSHTEIN_DIST(string1, string2) is supported by SPARQL, but it

Re: SPARQL query help

2021-03-23 Thread emri mbiemri
rently just close to guessing. I don't get how exactly the data > that you're interested in are connected to the given entity. > > Is it by the hasChild relation, i.e. do they have the same parent? > > On 22.03.21 20:35, emri mbiemri wrote: > > Dear authorities, > >

SPARQL query help

2021-03-22 Thread emri mbiemri
Dear authorities, I am trying to get somehow all attributes of a given class that contain a specific attribute(for instance "Emri")? So I want to select all other attributes of the class that contains "Emri" for instance ("Mbiemri", "Lendet", "Evaluations" etc.) (the name of the class is not

Re: Apache Fuseki does't show content on web

2021-03-10 Thread emri mbiemri
be88c%7C0%7C1%7C637509644284736086%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=TuT%2FBjwm9KpsxdCMMEi8WyxMziIf2sHcQ1OXaV%2BQ%2F6s%3D=0 > > On 10/03/2021, 09:10, "emri mbiemri" wrote: > > *

Re: Apache Fuseki does't show content on web

2021-03-10 Thread emri mbiemri
pressure to reply to this email outside your > working hours. > > > To arrange a meeting: > https://outlook.office365.com/owa/calendar/alasdairg...@heriotwatt.onmicrosoft.com/bookings/ > > On 10/03/2021, 09:10, "emri mbiemri" wrote: > > ***

Apache Fuseki does't show content on web

2021-03-10 Thread emri mbiemri
Dear all, I am trying to use apache Fuseki to perform some queries on a dataset. Related to the instruction of the this video:https://www.youtube.com/watch?v=3WTtKaIfqnk I have downloaded the fuseki zip, extracted and pasted the content on c:\FUSEKI. When I click the fuseki-server.bat file

Re: Merging a massive amount of RDFs

2021-02-12 Thread emri mbiemri
; try (FileOutputStream out = new > FileOutputStream("C:\\Users\\Admin\\Desktop\\merged.rdf")) { > RDFDataMgr.write(out, acc, RDFFormat.RDFXML); > } > } > > > Note that I have not tested this, you may want to run s

Re: Merging a massive amount of RDFs

2021-02-12 Thread emri mbiemri
idn't make it through. > > Could you include the code in the body of the message please? Or put in > somewhere like a gist on github / pastebin /... and send a link. > > Andy > > On 12/02/2021 11:45, emri mbiemri wrote: > > Dear all, > > > > Do you know how I can

Merging a massive amount of RDFs

2021-02-12 Thread emri mbiemri
Dear all, Do you know how I can merge some thousands RDF models into a single one? I have tried it by iteration through all files within a folder and then using Jena's union function to merge them one by one! The problem is that the program is running for more than 13 hours and is still not