Difference between revisions of "Workdocumentation 2023-05-15"

From BITPlan cr Wiki
Jump to navigation Jump to search
Line 109: Line 109:
 
= Analysis =
 
= Analysis =
 
[https://www.wikidata.org/wiki/Q12345678 Q12345678=Space Creator day]
 
[https://www.wikidata.org/wiki/Q12345678 Q12345678=Space Creator day]
 +
 +
= Prompt =
 +
create a sparql query getting the editors of CEUR -WS volumes 1302 from wikidata and dblp
 +
 +
= Result =
 +
<pre>
 +
Certainly! Here's a SPARQL query to retrieve the editors of CEUR-WS volumes 1302 from both Wikidata and DBLP:
 +
 +
sparql
 +
 +
PREFIX wd: <http://www.wikidata.org/entity/>
 +
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 +
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
 +
PREFIX dbr: <http://dblp.org/rec/>
 +
 +
SELECT DISTINCT ?editor ?editorName
 +
WHERE {
 +
  # Querying editors from Wikidata
 +
  wd:QXXXXX wdt:P179 ?editor.
 +
  ?editor foaf:name ?editorName.
 +
 +
  # Querying editors from DBLP
 +
  ?editorInDBLP dbr:QXXXXX ?editorInWikidata.
 +
  ?editorInDBLP foaf:name ?editorName.
 +
}
 +
 +
Please note that you need to replace QXXXXX with the specific Wikidata entity ID for CEUR-WS volume 1302. You can find the correct ID by searching for the CEUR-WS volume on Wikidata. Similarly, replace QXXXXX in the DBLP query with the appropriate Wikidata entity ID that corresponds to CEUR-WS volume 1302.
 +
 +
Keep in mind that not all CEUR-WS volumes may have associated editor information available in both Wikidata and DBLP. Make sure to verify the availability of the data for the specific volume you are interested in.
 +
</pre>
 +
<pre>
 +
Q113544723 is the wikidata id of Vol 1302 WOP 2014
 +
ChatGPT
 +
 +
Thank you for providing the Wikidata ID for CEUR-WS Volume 1302 (WOP 2014). Here's the updated SPARQL query:
 +
 +
sparql
 +
 +
PREFIX wd: <http://www.wikidata.org/entity/>
 +
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 +
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
 +
PREFIX dbr: <http://dblp.org/rec/>
 +
 +
SELECT DISTINCT ?editor ?editorName
 +
WHERE {
 +
  # Querying editors from Wikidata
 +
  wd:Q113544723 wdt:P179 ?editor.
 +
  ?editor foaf:name ?editorName.
 +
 +
  # Querying editors from DBLP
 +
  ?editorInDBLP dbr:Q113544723 ?editorInWikidata.
 +
  ?editorInDBLP foaf:name ?editorName.
 +
}
 +
 +
Please note that this query retrieves the editors of CEUR-WS Volume 1302 (WOP 2014) from both Wikidata and DBLP. Keep in mind that the availability of editor information in both sources may vary.
 +
User
 +
this is a federated query - how to run it against the qlever wikidata and dblp endpoints?
 +
ChatGPT
 +
 +
To run the federated SPARQL query against the QLever endpoints for Wikidata and DBLP, you can use the SERVICE keyword to specify each endpoint and execute the query. Here's an example of how you can modify the query for QLever:
 +
 +
sparql
 +
 +
PREFIX wd: <http://www.wikidata.org/entity/>
 +
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
 +
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
 +
PREFIX dbr: <http://dblp.org/rec/>
 +
 +
SELECT DISTINCT ?editor ?editorName
 +
WHERE {
 +
  SERVICE <https://qlever.cs.uni-freiburg.de/dblp> {
 +
    ?editorInDBLP dbr:Q113544723 ?editorInWikidata.
 +
    ?editorInDBLP foaf:name ?editorName.
 +
  }
 +
  SERVICE <https://qlever.cs.uni-freiburg.de/wikidata> {
 +
    wd:Q113544723 wdt:P179 ?editor.
 +
    ?editor foaf:name ?editorName.
 +
  }
 +
}
 +
 +
In the modified query, the SERVICE keyword is used to indicate the specific endpoint for each part of the query. The <https://qlever.cs.uni-freiburg.de/dblp> endpoint corresponds to the QLever DBLP endpoint, and the <https://qlever.cs.uni-freiburg.de/wikidata> endpoint corresponds to the QLever Wikidata endpoint.
 +
 +
Make sure you have access to the QLever endpoints and adjust the URLs if necessary. You can execute this federated query against the QLever endpoints to retrieve the editors of CEUR-WS Volume 1302 from both Wikidata and DBLP.
 +
</pre>
 +
  
 
[[Category:ChatGPT]]
 
[[Category:ChatGPT]]

Revision as of 14:59, 15 May 2023

Try Natural Language to KG conversion - example: https://ceur-ws.org/Vol-3391/

Prompt

Create wikidata quickstatement entries for CAMLIS 2022
Conference on Applied Machine Learning in Information Security

Proceedings of the Conference on Applied Machine Learning in Information Security
Arlington, Virginia, USA, October 20-21, 2022.

Edited by

Edward Raff *
Sagar Samtani **
Lauren Deason ***
* Booz Allen Hamilton, 304 Sentinel Drive, Annapolis Junction, MD, USA
** Indiana University, 107 S Indiana Ave, Bloomington, IN, USA
*** Meta, One Hacker Way Menlo Park, CA, USA




Table of Contents

    Inroads into Autonomous Network Defence using Explained Reinforcement Learning 1-19
    Myles Foley, Mia Wang, Zoe M, Chris Hicks, Vasilios Mavroudis
    Learning to Embed Byte Sequences with Convolutional Autoencoders 20-29
    Doug Sibley
    Firenze: Model Evaluation Using Weak Signals 30-51
    Bhavna Soman, Ali Torkamani, Michael J. Morais, Jeffrey Bickford, Baris Coskun
    Network Security Modelling with Distributional Data 52-64
    Subhabrata Majumdar, Ganesh Subramaniam
    Efficient Malware Analysis Using Metric Embeddings 65-80
    Ethan M. Rudd, David Krisiloff, Daniel Olszewski, Edward Raff, James Holt
    Minimizing Compute Costs: When Should We Run More Expensive Malware Analysis? 81-99
    Andre T. Nguyen, Richard Zak, Luke E. Richards, Maya Fuchs, Fred Lu, Robert Brandon, Gary Lopez Munoz, Edward Raff, Charles Nicholas, James Holt
    Temporal Attack Detection in Multimodal Cyber-Physical Systems with Sticky HDP-HMM 100-112
    Andrew E. Hong, Peter P. Malinovsky, Suresh Damodaran
    Threat Class Predictor: An explainable framework for predicting vulnerability threat using topic and trend modeling 113-124
    François Labrèche, Serge-Olivier Paquette

Result

Here are the Wikidata QuickStatements for the CAMLIS 2022 conference:

    Create the main item for the conference:

sql

CREATE
LAST|Len|en|"CAMLIS 2022"
LAST|Den|"Conference on Applied Machine Learning in Information Security"
LAST|P31|Q2020153 # academic conference
LAST|P50|Q12345678 # Edward Raff (conference chair)
LAST|P793|Q87654321 # Proceedings of the Conference on Applied Machine Learning in Information Security
LAST|P1476|en:"Proceedings of the Conference on Applied Machine Learning in Information Security"
LAST|P1433|Q87654321 # Arlington, Virginia, USA
LAST|P577|+2022-10-20T00:00:00Z/11 # start time
LAST|P582|+2022-10-21T23:59:59Z/11 # end time

    Create items for the editors:

bash

CREATE
LAST|Len|en|"Edward Raff"
LAST|P31|Q5 # human
LAST|P50|Q12345678 # CAMLIS 2022 (conference chair)
LAST|P937|Q87654321 # Booz Allen Hamilton, 304 Sentinel Drive, Annapolis Junction, MD, USA

LAST|Len|en|"Sagar Samtani"
LAST|P31|Q5 # human
LAST|P50|Q12345678 # CAMLIS 2022 (conference chair)
LAST|P937|Q87654321 # Indiana University, 107 S Indiana Ave, Bloomington, IN, USA

LAST|Len|en|"Lauren Deason"
LAST|P31|Q5 # human
LAST|P50|Q12345678 # CAMLIS 2022 (conference chair)
LAST|P937|Q87654321 # Meta, One Hacker Way Menlo Park, CA, USA

    Create items for the papers and their authors:

bash

CREATE
LAST|Len|en|"Inroads into Autonomous Network Defence using Explained Reinforcement Learning"
LAST|P31|Q13442814 # scientific article
LAST|P50|Q87654321 # Proceedings of the Conference on Applied Machine Learning in Information Security
LAST|P2093|"1-19" # page(s)
LAST|P2096|Q87654321 # Myles Foley
LAST|P2096|Q87654322 # Mia Wang
LAST|P2096|Q87654323 # Zoe M
LAST|P2096|Q87654324 # Chris Hicks
LAST|P2096|Q87654325 # Vasilios Mavroudis

LAST|Len|en|"Learning to Embed Byte Sequences with Convolutional Autoencoders"
LAST|P31|Q13442814 # scientific article
LAST|P50|Q87654321 # Proceedings of the Conference on Applied Machine Learning in Information Security
LAST|P2093|"20-29" # page(s)
LAST|P2096|Q87654326 # Doug Sibley

LAST|Len|en|"Firenze: Model Evaluation Using Weak Signals"
LAST|P31|Q13442814 # scientific article
LAST|P50|Q87654321 # Proceedings of the Conference on Applied Machine Learning in Information Security
LAST|P2093|"30-51" # page(s)
LAST|P2096|Q87654327 # Bhavna Soman
LAST|P2096|Q87654328 # Ali Torkamani
LAST|P2096|Q87654329 #

Analysis

Q12345678=Space Creator day

Prompt

create a sparql query getting the editors of CEUR -WS volumes 1302 from wikidata and dblp

Result

Certainly! Here's a SPARQL query to retrieve the editors of CEUR-WS volumes 1302 from both Wikidata and DBLP:

sparql

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbr: <http://dblp.org/rec/>

SELECT DISTINCT ?editor ?editorName
WHERE {
  # Querying editors from Wikidata
  wd:QXXXXX wdt:P179 ?editor.
  ?editor foaf:name ?editorName.

  # Querying editors from DBLP
  ?editorInDBLP dbr:QXXXXX ?editorInWikidata.
  ?editorInDBLP foaf:name ?editorName.
}

Please note that you need to replace QXXXXX with the specific Wikidata entity ID for CEUR-WS volume 1302. You can find the correct ID by searching for the CEUR-WS volume on Wikidata. Similarly, replace QXXXXX in the DBLP query with the appropriate Wikidata entity ID that corresponds to CEUR-WS volume 1302.

Keep in mind that not all CEUR-WS volumes may have associated editor information available in both Wikidata and DBLP. Make sure to verify the availability of the data for the specific volume you are interested in.
Q113544723 is the wikidata id of Vol 1302 WOP 2014
ChatGPT

Thank you for providing the Wikidata ID for CEUR-WS Volume 1302 (WOP 2014). Here's the updated SPARQL query:

sparql

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbr: <http://dblp.org/rec/>

SELECT DISTINCT ?editor ?editorName
WHERE {
  # Querying editors from Wikidata
  wd:Q113544723 wdt:P179 ?editor.
  ?editor foaf:name ?editorName.

  # Querying editors from DBLP
  ?editorInDBLP dbr:Q113544723 ?editorInWikidata.
  ?editorInDBLP foaf:name ?editorName.
}

Please note that this query retrieves the editors of CEUR-WS Volume 1302 (WOP 2014) from both Wikidata and DBLP. Keep in mind that the availability of editor information in both sources may vary.
User
this is a federated query - how to run it against the qlever wikidata and dblp endpoints?
ChatGPT

To run the federated SPARQL query against the QLever endpoints for Wikidata and DBLP, you can use the SERVICE keyword to specify each endpoint and execute the query. Here's an example of how you can modify the query for QLever:

sparql

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dbr: <http://dblp.org/rec/>

SELECT DISTINCT ?editor ?editorName
WHERE {
  SERVICE <https://qlever.cs.uni-freiburg.de/dblp> {
    ?editorInDBLP dbr:Q113544723 ?editorInWikidata.
    ?editorInDBLP foaf:name ?editorName.
  }
  SERVICE <https://qlever.cs.uni-freiburg.de/wikidata> {
    wd:Q113544723 wdt:P179 ?editor.
    ?editor foaf:name ?editorName.
  }
}

In the modified query, the SERVICE keyword is used to indicate the specific endpoint for each part of the query. The <https://qlever.cs.uni-freiburg.de/dblp> endpoint corresponds to the QLever DBLP endpoint, and the <https://qlever.cs.uni-freiburg.de/wikidata> endpoint corresponds to the QLever Wikidata endpoint.

Make sure you have access to the QLever endpoints and adjust the URLs if necessary. You can execute this federated query against the QLever endpoints to retrieve the editors of CEUR-WS Volume 1302 from both Wikidata and DBLP.