Re: Trying to count the properties used for each class

2022-01-25 Thread Gray, Alasdair
We defined a lot of useful statistics queries for datasets in §6.6 of the W3C 
HCLS Dataset Description Guidelines
https://www.w3.org/TR/hcls-dataset/#s6_6

I’ve made these available in a GitHub repo
https://github.com/AlasdairGray/HCLS-Stats-Queries

Hopefully you find these helpful

Alasdair
--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: a.j.g.g...@hw.ac.uk
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair


Heriot-Watt is a global University, as a result my working hours may not be 
your working hours. Do not feel 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/

From: Nicola Vitucci 
Date: Monday, 24 January 2022 at 23:21
To: users@jena.apache.org 
Subject: Re: Trying to count the properties used for each class

Caution: This email originated from a sender outside Heriot-Watt University.
Do not follow links or open attachments if you doubt the authenticity of the 
sender or the content.



Hey Bob,

does this one do what you're after?

SELECT DISTINCT ?cl (COUNT(DISTINCT ?p) AS ?c)
WHERE {
  ?s a ?cl .
  ?s ?p ?o .
}
GROUP BY ?cl

Nicola

Il giorno lun 24 gen 2022 alle ore 23:05 Bob DuCharme  ha
scritto:

> Using arq and the data at
> http://www.snee.com/bobdc.blog/files/BeatlesMusicians.ttl, I’m trying to
> write a query that will list the classes used in the data and the number
> of distinct properties used by instances of that class. I’m having a
> hard time and can’t even write a query that lists the number of
> properties used for just one of the classes; the following just shows me
> a series of ones.
>
> SELECT (COUNT(DISTINCT ?p) AS ?pcount)
> WHERE {
>?s a  .
>?s ?p ?o .
> }
> GROUP BY ?p
>
> Any suggestions?
>
> Thanks,
>
> Bob
>
>


Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses 
and students across the entire globe we span the world, delivering innovation 
and educational excellence in business, engineering, design and the physical, 
social and life sciences. This email is generated from the Heriot-Watt 
University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number 
SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance 
centre for sport. Heriot-Watt Services Limited is a private limited company 
registered is Scotland with registered number SC271030 and registered office at 
Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, 
EH14 4AS.

The contents (including any attachments) are confidential. If you are not the 
intended recipient of this e-mail, any disclosure, copying, distribution or use 
of its contents is strictly prohibited, and you should please notify the sender 
immediately and then delete it (including any attachments) from your system.


Re: Apache Fuseki does't show content on web

2021-03-10 Thread Gray, Alasdair
Hi

I encountered the same problem earlier in the year when teaching my class. We 
found changing from Chrome to Firefox got around the problem.

Alasdair

--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: a.j.g.g...@hw.ac.uk 
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair


Heriot-Watt is a global University, as a result my working hours may not be 
your working hours. Do not feel 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:


Caution: This email originated from a sender outside Heriot-Watt University.
Do not follow links or open attachments if you doubt the authenticity of 
the sender or the content.



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 then I can open fuseki on 
locahost:3030 but nor contect in any link is give(query, datasets etc.)
The whole content is blank!
Hope you can help me because I am new on Fuseki and don't have some much 
info related to it.
Thanks a lot.



Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses 
and students across the entire globe we span the world, delivering innovation 
and educational excellence in business, engineering, design and the physical, 
social and life sciences. This email is generated from the Heriot-Watt 
University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number 
SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance 
centre for sport. Heriot-Watt Services Limited is a private limited company 
registered is Scotland with registered number SC271030 and registered office at 
Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, 
EH14 4AS.

The contents (including any attachments) are confidential. If you are not the 
intended recipient of this e-mail, any disclosure, copying, distribution or use 
of its contents is strictly prohibited, and you should please notify the sender 
immediately and then delete it (including any attachments) from your system.


Re: Problems uploading data with Fuseki

2020-07-15 Thread Gray, Alasdair J G
Hi

I've been using Chrome. I've just switched to Firefox and the data has uploaded 
and I can again query it.
(Hazy memories are a wonderful thing __ )

Thanks for the help

Alasdair

-- 
Alasdair J G Gray
Associate Professor in Computer Science, 
School of Mathematical and Computer Sciences 
Heriot-Watt University, Edinburgh, UK.

Email: a.j.g.g...@hw.ac.uk <mailto:a.j.g.g...@hw.ac.uk>
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair
 
To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
 

On 15/07/2020, 16:12, "Andy Seaborne"  wrote:

Sorry - image didn't get through.

Did you do a hard-refresh in the browser? (I don't know that this is the 
issue but I have some hazy memory it might.)

 Andy

On 15/07/2020 10:37, Gray, Alasdair J G wrote:
> Hi Andy,
> 
> This is through the UI. I've just tried using fuseki-server -v. While 
this gives more detailed logging there are no log entries when I try to upload 
the files.

That suggests the request is not getting to the Fuseki code. The first 
thing it does is to log the request.

> 
> Uploading a turtle file via the curl command worked but then queries 
through the UI are not working for that dataset, the query just keeps running 
without responding.
> 
> This is a screenshot of the problem I'm seeing in the UI when uploading 
the data.
> 
> Thanks
> 
> Alasdair
> 
> --
> Alasdair J G Gray
> Associate Professor in Computer Science,
> School of Mathematical and Computer Sciences
> Heriot-Watt University, Edinburgh, UK.
> 
> Email: a.j.g.g...@hw.ac.uk <mailto:a.j.g.g...@hw.ac.uk>
> Web: http://www.macs.hw.ac.uk/~ajg33
> ORCID: http://orcid.org/-0002-5711-4872
> Office: Earl Mountbatten Building 1.39
> Twitter: @gray_alasdair
> 
> To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
> 
> 
> On 15/07/2020, 09:53, "Andy Seaborne"  wrote:
> 
>  This is via the UI? Possibly, there is some kind of error message (in
>  HTML) coming back where JSON expected.
> 
>  The server log should have more details, especially if run "-v" (for 
the
>  standalone server).
> 
>  If you use the command line, you shoudl get back the actual response 
bytes:
> 
>  curl -XPOST --header 'Content-type: text/turtle' --data-binary 
@data.ttl
>  http://localhost:3030/ds/
> 
>   Andy
> 
>  On 15/07/2020 08:54, Gray, Alasdair J G wrote:
>  > Hi
>  >
>  > I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I 
try to upload a data file with 3.16 I get the following error. This is 
happening with n-quad and turtle files that I have successfully uploaded into 
3.10.
>  > Result: failed with message "SyntaxError: Unexpected token < in 
JSON at position 0"
>  >
>  >
>  > Thanks
>  >
>  > Alasdair
>  >
>  > --
>  > Alasdair J G Gray
>  > Associate Professor in Computer Science,
>  > School of Mathematical and Computer Sciences
>  > Heriot-Watt University, Edinburgh, UK.
>  >
>  > Email: a.j.g.g...@hw.ac.uk<mailto:a.j.g.g...@hw.ac.uk>
>  > Web: http://www.macs.hw.ac.uk/~ajg33
>  > ORCID: http://orcid.org/-0002-5711-4872
>  > Office: Earl Mountbatten Building 1.39
>  > Twitter: @gray_alasdair
>  >
>  > To arrange a meeting: 
https://doodle.com/mm/alasdairgray/book-a-time
>  >
> 
> 
> 
> Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With 
campuses and students across the entire globe we span the world, delivering 
innovation and educational excellence in business, engineering, design and the 
physical, social and life sciences. This email is generated from the 
Heriot-Watt University Group, which includes:
> 
>1.  Heriot-Watt University, a Scottish charity registered under number 
SC000278
>2.  Heriot- Watt Services Limited (Oriam), Scotland's national 
performance centre for sport. Heriot-Watt Services Limited is a private limited 
company registered is Scotland with registered number SC271030 and registered 
office at Research & Enterprise Services Heriot-Watt University, Riccarton, 
Edinburgh, EH14 4AS.
> 
> The contents (including any attachments) are confidential. If you are not 
the intended recipient of this e-mail, any disclosure, copying, distribution or 
use of its contents is strictly prohibited, and you should please notify the 
sender immediately and then delete it (including any attachments) from your 
system.
> 



Re: Problems uploading data with Fuseki

2020-07-15 Thread Gray, Alasdair J G
Hi Andy,

This is through the UI. I've just tried using fuseki-server -v. While this 
gives more detailed logging there are no log entries when I try to upload the 
files.

Uploading a turtle file via the curl command worked but then queries through 
the UI are not working for that dataset, the query just keeps running without 
responding.

This is a screenshot of the problem I'm seeing in the UI when uploading the 
data.

Thanks

Alasdair

--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: a.j.g.g...@hw.ac.uk <mailto:a.j.g.g...@hw.ac.uk>
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair

To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time


On 15/07/2020, 09:53, "Andy Seaborne"  wrote:

This is via the UI? Possibly, there is some kind of error message (in
HTML) coming back where JSON expected.

The server log should have more details, especially if run "-v" (for the
standalone server).

If you use the command line, you shoudl get back the actual response bytes:

curl -XPOST --header 'Content-type: text/turtle' --data-binary @data.ttl
http://localhost:3030/ds/

 Andy

    On 15/07/2020 08:54, Gray, Alasdair J G wrote:
> Hi
>
> I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to 
upload a data file with 3.16 I get the following error. This is happening with 
n-quad and turtle files that I have successfully uploaded into 3.10.
> Result: failed with message "SyntaxError: Unexpected token < in JSON at 
position 0"
>
>
> Thanks
>
> Alasdair
>
> --
> Alasdair J G Gray
> Associate Professor in Computer Science,
> School of Mathematical and Computer Sciences
> Heriot-Watt University, Edinburgh, UK.
>
> Email: a.j.g.g...@hw.ac.uk<mailto:a.j.g.g...@hw.ac.uk>
> Web: http://www.macs.hw.ac.uk/~ajg33
> ORCID: http://orcid.org/-0002-5711-4872
> Office: Earl Mountbatten Building 1.39
> Twitter: @gray_alasdair
>
> To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time
>



Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses 
and students across the entire globe we span the world, delivering innovation 
and educational excellence in business, engineering, design and the physical, 
social and life sciences. This email is generated from the Heriot-Watt 
University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number 
SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance 
centre for sport. Heriot-Watt Services Limited is a private limited company 
registered is Scotland with registered number SC271030 and registered office at 
Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, 
EH14 4AS.

The contents (including any attachments) are confidential. If you are not the 
intended recipient of this e-mail, any disclosure, copying, distribution or use 
of its contents is strictly prohibited, and you should please notify the sender 
immediately and then delete it (including any attachments) from your system.


Problems uploading data with Fuseki

2020-07-15 Thread Gray, Alasdair J G
Hi

I have recently upgraded from Fuseki 3.10.0 to 3.16.0. Whenever I try to upload 
a data file with 3.16 I get the following error. This is happening with n-quad 
and turtle files that I have successfully uploaded into 3.10.
Result: failed with message "SyntaxError: Unexpected token < in JSON at 
position 0"


Thanks

Alasdair

--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: a.j.g.g...@hw.ac.uk
Web: http://www.macs.hw.ac.uk/~ajg33
ORCID: http://orcid.org/-0002-5711-4872
Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair

To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time



Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses 
and students across the entire globe we span the world, delivering innovation 
and educational excellence in business, engineering, design and the physical, 
social and life sciences. This email is generated from the Heriot-Watt 
University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number 
SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance 
centre for sport. Heriot-Watt Services Limited is a private limited company 
registered is Scotland with registered number SC271030 and registered office at 
Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, 
EH14 4AS.

The contents (including any attachments) are confidential. If you are not the 
intended recipient of this e-mail, any disclosure, copying, distribution or use 
of its contents is strictly prohibited, and you should please notify the sender 
immediately and then delete it (including any attachments) from your system.