From c3ae71cc9d65f6e17b4d3dba79e70e00e4b25d4b Mon Sep 17 00:00:00 2001 From: Jeremy Nelson Date: Tue, 10 Dec 2024 09:20:14 -0800 Subject: [PATCH] feat: Results from Metadata WG meeting --- ...citations.csv => 2024-12-10-citations.csv} | 0 ...2024-12-10-quickstatements_with_qcodes.txt | 139 ++++ notebooks/2024-12-10.ipynb | 680 +++++++++++++++++- 3 files changed, 806 insertions(+), 13 deletions(-) rename data/{citations.csv => 2024-12-10-citations.csv} (100%) create mode 100644 data/2024-12-10-quickstatements_with_qcodes.txt diff --git a/data/citations.csv b/data/2024-12-10-citations.csv similarity index 100% rename from data/citations.csv rename to data/2024-12-10-citations.csv diff --git a/data/2024-12-10-quickstatements_with_qcodes.txt b/data/2024-12-10-quickstatements_with_qcodes.txt new file mode 100644 index 0000000..160fe46 --- /dev/null +++ b/data/2024-12-10-quickstatements_with_qcodes.txt @@ -0,0 +1,139 @@ +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Information extraction: Beyond document retrieval" +LAST|P577|+1998-00-00T00:00:00Z/9 +LAST|P50|Q58329735 +LAST|P50|Q4470008 +LAST|P1433|Q6295097 +LAST|P478|"54.0" +LAST|P433|"1.0" +LAST|P304|"70-105" +LAST|P123|"MCB UP Ltd" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Hypertext and the literary document" +LAST|P577|+1991-00-00T00:00:00Z/9 +LAST|P50|Q62560226 +LAST|P1433|Q6295097 +LAST|P478|"47.0" +LAST|P433|"4.0" +LAST|P304|"373-388" +LAST|P123|"MCB UP Ltd" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Modularity: the next form of scientific information presentation?" +LAST|P577|+1998-00-00T00:00:00Z/9 +LAST|P2093|"Joost G Kircz" +LAST|P1433|Q6295097 +LAST|P478|"54.0" +LAST|P433|"2.0" +LAST|P304|"210-235" +LAST|P123|"MCB UP Ltd" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"A cognitive process model of document indexing" +LAST|P577|+1991-00-00T00:00:00Z/9 +LAST|P2093|"John F Farrow" +LAST|P1433|Q6295097 +LAST|P478|"47.0" +LAST|P433|"2.0" +LAST|P304|"149-166" +LAST|P123|"MCB UP Ltd" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Review of metadata formats" +LAST|P577|+1996-00-00T00:00:00Z/9 +LAST|P2093|"Rachel Heery" +LAST|P1433|Q170584 +LAST|P478|"30.0" +LAST|P433|"4.0" +LAST|P304|"345-373" +LAST|P123|"MCB UP Ltd" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"A comparison of the two traditions of metadata development" +LAST|P577|+1999-00-00T00:00:00Z/9 +LAST|P50|Q28595291 +LAST|P50|Q102420866 +LAST|P50|Q92383487 +LAST|P1433|Q152040 +LAST|P478|"50.0" +LAST|P433|"13.0" +LAST|P304|"1209-1217" +LAST|P123|Q70631906 + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"OCLC/NCSA metadata workshop report" +LAST|P577|+1995-00-00T00:00:00Z/9 +LAST|P2093|"Stuart Weibel" +LAST|P2093|"Jean Godby" +LAST|P50|Q51903830 +LAST|P50|Q7363671 +LAST|P1433|Q21143366 +LAST|P478|"nan" +LAST|P433|"nan" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Aesthetics and preferences of web pages" +LAST|P577|+2000-00-00T00:00:00Z/9 +LAST|P2093|"Bo N Schenkman" +LAST|P50|Q51946229 +LAST|P1433|Q814448 +LAST|P478|"19.0" +LAST|P433|"5.0" +LAST|P304|"367-377" +LAST|P123|Q880582 + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Explaining embodied cognition results" +LAST|P577|+2012-00-00T00:00:00Z/9 +LAST|P50|Q313772 +LAST|P1433|Q15817100 +LAST|P478|"4.0" +LAST|P433|"4.0" +LAST|P304|"773-785" +LAST|P123|Q70631906 + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"“The square is… bulky, heavy, contented, plain, good-natured, stupid…”: A cross-cultural study of the aesthetics and meanings of rectangles." +LAST|P577|+2013-00-00T00:00:00Z/9 +LAST|P2093|"I Chris McManus" +LAST|P50|Q10919214 +LAST|P1433|Q7256405 +LAST|P478|"7.0" +LAST|P433|"2.0" +LAST|P304|"130" +LAST|P123|"Educational Publishing Foundation" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"The metaphorical structure of the human conceptual system" +LAST|P577|+1980-00-00T00:00:00Z/9 +LAST|P50|Q313772 +LAST|P50|Q1356869 +LAST|P1433|Q147638 +LAST|P478|"4.0" +LAST|P433|"2.0" +LAST|P304|"195-208" +LAST|P123|"No longer published by Elsevier" + +CREATE +LAST|P31|Q13442814 +LAST|P1476|en:"Specifying structured document transformations" +LAST|P577|+1988-00-00T00:00:00Z/9 +LAST|P50|Q102390435 +LAST|P2093|"P David Stotts" +LAST|P1433|Document Manipulation and typography +LAST|P478|"nan" +LAST|P433|"nan" +LAST|P304|"109-120" +LAST|P123|"Cambridge University Press Cambridge" diff --git a/notebooks/2024-12-10.ipynb b/notebooks/2024-12-10.ipynb index 8260d20..a1c19a4 100644 --- a/notebooks/2024-12-10.ipynb +++ b/notebooks/2024-12-10.ipynb @@ -14,56 +14,710 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "id": "6e8037a5-542c-4a11-9adb-e4b416e30f2d", "metadata": {}, "outputs": [], "source": [ "import os\n", + "import time\n", "\n", "import httpx\n", - "import openai\n", - "import pandas as pd" + "import pandas as pd\n", + "\n", + "from openai import OpenAI" ] }, { "cell_type": "code", - "execution_count": null, - "id": "ac60f124-7ff5-4716-a7f3-5f06d4e32173", + "execution_count": 2, + "id": "3d314d06-551f-4eb1-9b1f-c744aa4ef0ea", "metadata": {}, "outputs": [], "source": [ - "client = openai.OpenAI(\n", - " api_key=os.environ.get(\"OPENAI_API_KEY\")\n", - ")" + "client = OpenAI(api_key=os.environ.get(\"OPENAI_API_KEY\"))" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "2c9ac12c-373e-4675-ad78-918c8a4b6723", "metadata": {}, "outputs": [], "source": [ - "citations = pd.read_csv(\"../data/citations.csv\")" + "citations = pd.read_csv(\"../data/2024-12-10-citations.csv\")" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "c5e6ad5e-5b88-4a69-98fc-1e10bdd0d662", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
AuthorsTitlePublicationVolumeNumberPagesYearPublisher
0Gaizauskas, Robert; Wilks, Yorick;Information extraction: Beyond document retrievalJournal of documentation54.01.070-1051998MCB UP Ltd
1Morgan, Paul;Hypertext and the literary documentJournal of documentation47.04.0373-3881991MCB UP Ltd
2Kircz, Joost G;Modularity: the next form of scientific inform...Journal of documentation54.02.0210-2351998MCB UP Ltd
3Farrow, John F;A cognitive process model of document indexingJournal of documentation47.02.0149-1661991MCB UP Ltd
4Heery, Rachel;Review of metadata formatsProgram30.04.0345-3731996MCB UP Ltd
5Burnett, Kathleen; Ng, Kwong Bor; Park, Soyeon;A comparison of the two traditions of metadata...Journal of the American Society for Informatio...50.013.01209-12171999Wiley Online Library
6Weibel, Stuart; Godby, Jean; Miller, Eric; Dan...OCLC/NCSA metadata workshop reportNaNNaNNaNNaN1995NaN
7Schenkman, Bo N; Jönsson, Fredrik U;Aesthetics and preferences of web pagesBehaviour & information technology19.05.0367-3772000Taylor & Francis
8Lakoff, George;Explaining embodied cognition resultsTopics in cognitive science4.04.0773-7852012Wiley Online Library
9McManus, I Chris; Wu, Wen;“The square is… bulky, heavy, contented, plain...Psychology of Aesthetics, Creativity, and the ...7.02.01302013Educational Publishing Foundation
10Lakoff, George; Johnson, Mark;The metaphorical structure of the human concep...Cognitive science4.02.0195-2081980No longer published by Elsevier
11Furuta, Richard; Stotts, P David;Specifying structured document transformationsDocument Manipulation and typographyNaNNaN109-1201988Cambridge University Press Cambridge
\n", + "
" + ], + "text/plain": [ + " Authors \\\n", + "0 Gaizauskas, Robert; Wilks, Yorick; \n", + "1 Morgan, Paul; \n", + "2 Kircz, Joost G; \n", + "3 Farrow, John F; \n", + "4 Heery, Rachel; \n", + "5 Burnett, Kathleen; Ng, Kwong Bor; Park, Soyeon; \n", + "6 Weibel, Stuart; Godby, Jean; Miller, Eric; Dan... \n", + "7 Schenkman, Bo N; Jönsson, Fredrik U; \n", + "8 Lakoff, George; \n", + "9 McManus, I Chris; Wu, Wen; \n", + "10 Lakoff, George; Johnson, Mark; \n", + "11 Furuta, Richard; Stotts, P David; \n", + "\n", + " Title \\\n", + "0 Information extraction: Beyond document retrieval \n", + "1 Hypertext and the literary document \n", + "2 Modularity: the next form of scientific inform... \n", + "3 A cognitive process model of document indexing \n", + "4 Review of metadata formats \n", + "5 A comparison of the two traditions of metadata... \n", + "6 OCLC/NCSA metadata workshop report \n", + "7 Aesthetics and preferences of web pages \n", + "8 Explaining embodied cognition results \n", + "9 “The square is… bulky, heavy, contented, plain... \n", + "10 The metaphorical structure of the human concep... \n", + "11 Specifying structured document transformations \n", + "\n", + " Publication Volume Number \\\n", + "0 Journal of documentation 54.0 1.0 \n", + "1 Journal of documentation 47.0 4.0 \n", + "2 Journal of documentation 54.0 2.0 \n", + "3 Journal of documentation 47.0 2.0 \n", + "4 Program 30.0 4.0 \n", + "5 Journal of the American Society for Informatio... 50.0 13.0 \n", + "6 NaN NaN NaN \n", + "7 Behaviour & information technology 19.0 5.0 \n", + "8 Topics in cognitive science 4.0 4.0 \n", + "9 Psychology of Aesthetics, Creativity, and the ... 7.0 2.0 \n", + "10 Cognitive science 4.0 2.0 \n", + "11 Document Manipulation and typography NaN NaN \n", + "\n", + " Pages Year Publisher \n", + "0 70-105 1998 MCB UP Ltd \n", + "1 373-388 1991 MCB UP Ltd \n", + "2 210-235 1998 MCB UP Ltd \n", + "3 149-166 1991 MCB UP Ltd \n", + "4 345-373 1996 MCB UP Ltd \n", + "5 1209-1217 1999 Wiley Online Library \n", + "6 NaN 1995 NaN \n", + "7 367-377 2000 Taylor & Francis \n", + "8 773-785 2012 Wiley Online Library \n", + "9 130 2013 Educational Publishing Foundation \n", + "10 195-208 1980 No longer published by Elsevier \n", + "11 109-120 1988 Cambridge University Press Cambridge " + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "citations" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "59963d06-ebae-4edd-93a0-f93855def04b", "metadata": {}, "outputs": [], + "source": [ + "chat_completion = client.chat.completions.create(\n", + " messages=[\n", + " {\n", + " \"role\": \"user\",\n", + " \"content\": \"\"\"From the following row in a csv, create Wikidata Quickstatements:\\nAuthors \tTitle \tPublication \tVolume \tNumber \tPages \tYear \tPublisher\n", + "0 \tGaizauskas, Robert; Wilks, Yorick; \tInformation extraction: Beyond document retrieval \tJournal of documentation \t54.0 \t1.0 \t70-105 \t1998 \tMCB UP Ltd\"\"\"\n", + " }\n", + " ],\n", + " model=\"gpt-4o\",\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "ffca95bc-6369-4c0a-9d85-8a87fd03f229", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "To create Wikidata Quickstatements for the given row of data, we need to map the information to the appropriate properties used in Wikidata. I'll write the Quickstatements using the column data provided:\n", + "\n", + "1. Author: `Gaizauskas, Robert`\n", + "2. Author: `Wilks, Yorick`\n", + "3. Title: `Information extraction: Beyond document retrieval`\n", + "4. Publication: `Journal of documentation`\n", + "5. Volume: `54`\n", + "6. Number: `1`\n", + "7. Pages: `70-105`\n", + "8. Year: `1998`\n", + "9. Publisher: `MCB UP Ltd`\n", + "\n", + "Quickstatements:\n", + "\n", + "```\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Information extraction: Beyond document retrieval\"\n", + "LAST|P2093|\"Gaizauskas, Robert\"\n", + "LAST|P2093|\"Wilks, Yorick\"\n", + "LAST|P1433|Q15716944\n", + "LAST|P478|\"54\"\n", + "LAST|P433|\"1\"\n", + "LAST|P304|\"70-105\"\n", + "LAST|P577|+1998-00-00T00:00:00Z/9\n", + "LAST|P123|Q17929746\n", + "```\n", + "\n", + "Here's what individual parts of the above Quickstatements mean:\n", + "\n", + "- `P31|Q13442814` specifies that this item is a \"scholarly article.\"\n", + "- `P1476|en:\"Information extraction: Beyond document retrieval\"` specifies the title of the work.\n", + "- `P2093|\"Gaizauskas, Robert\"` and `P2093|\"Wilks, Yorick\"` specifies the authors as string values since they might not have specific Wikidata entries.\n", + "- `P1433|Q15716944` links the work to the journal \"Journal of documentation.\" However, you may need to verify the exact Wikidata item for this journal as this ID might be hypothetical.\n", + "- `P478|\"54\"` specifies the volume number.\n", + "- `P433|\"1\"` specifies the issue number.\n", + "- `P304|\"70-105\"` specifies the page range.\n", + "- `P577|+1998-00-00T00:00:00Z/9` specifies the publication date.\n", + "- `P123|Q17929746` relates the article with the publisher \"MCB UP Ltd.\" Like the journal, this also requires verification of the actual Wikidata entry.\n", + "\n", + "Please ensure to replace `Q15716944` and `Q17929746` with the correct Wikidata item IDs for \"Journal of documentation\" and \"MCB UP Ltd\" if they exist or create them if needed.\n" + ] + } + ], + "source": [ + "print(chat_completion.choices[0].message.content)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "42e44f52-1d96-4525-b57a-c3cf84d3f6f4", + "metadata": {}, + "outputs": [], + "source": [ + "def search_wikidata(name):\n", + " \"\"\"\n", + " Search for a name in Wikidata and return the Q code if found.\n", + " \"\"\"\n", + " url = \"https://www.wikidata.org/w/api.php\"\n", + " params = {\n", + " \"action\": \"wbsearchentities\",\n", + " \"search\": name,\n", + " \"language\": \"en\",\n", + " \"format\": \"json\",\n", + " \"limit\": 1 # Limit to one result for simplicity\n", + " }\n", + " response = httpx.get(url, params=params)\n", + " if response.status_code == 200:\n", + " results = response.json().get('search', [])\n", + " if results:\n", + " return results[0]['id'] # Return the Q-code (e.g., Q12345)\n", + " return None # Return None if not found\n", + "\n", + "\n", + "def create_quickstatements_with_qcodes(row):\n", + " statements = []\n", + " # Create a new item for the article\n", + " item = f'CREATE\\n'\n", + " item += f'LAST|P31|Q13442814\\n' # Instance of: scholarly article\n", + " item += f'LAST|P1476|en:\"{row[\"Title\"]}\"\\n' # Title\n", + " item += f'LAST|P577|+{row[\"Year\"]}-00-00T00:00:00Z/9\\n' # Publication date\n", + " \n", + " # Authors\n", + " authors = row['Authors'].split('; ')\n", + " for author in authors:\n", + " if author.strip(): # Check if the author field is not empty\n", + " # Adjust author name format to \"First Last\" instead of \"Last, First\"\n", + " if ',' in author:\n", + " last_name, first_name = author.split(', ')\n", + " author_name = f\"{first_name} {last_name}\"\n", + " else:\n", + " author_name = author # No comma, assume name is already in correct format\n", + " print(author_name)\n", + " qcode = search_wikidata(author_name)\n", + " if qcode:\n", + " item += f'LAST|P50|{qcode}\\n' # Author (linked to Wikidata Q code)\n", + " else:\n", + " item += f'LAST|P2093|\"{author_name}\"\\n' # Author name string if no Q code\n", + " \n", + " # Journal\n", + " publication_qcode = search_wikidata(row[\"Publication\"])\n", + " if not publication_qcode:\n", + " publication_qcode = row[\"Publication\"]\n", + " item += f'LAST|P1433|{publication_qcode}\\n' # Published in\n", + " item += f'LAST|P478|\"{row[\"Volume\"]}\"\\n' # Volume\n", + " item += f'LAST|P433|\"{row[\"Number\"]}\"\\n' # Issue\n", + " \n", + " # Pages\n", + " if pd.notna(row['Pages']):\n", + " item += f'LAST|P304|\"{row[\"Pages\"]}\"\\n' # Pages\n", + " \n", + " # Publisher\n", + " if pd.notna(row['Publisher']) and row['Publisher'].strip():\n", + " qcode = search_wikidata(row['Publisher'])\n", + " if qcode:\n", + " item += f'LAST|P123|{qcode}\\n' # Publisher (linked to Wikidata Q code)\n", + " else:\n", + " item += f'LAST|P123|\"{row[\"Publisher\"]}\"\\n' # Publisher name string\n", + " \n", + " statements.append(item)\n", + " return \"\\n\".join(statements)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "aea55383-5ed9-4893-8f97-b452b5d722ec", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'Q4470008'" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "search_wikidata(\"Yorick Wilks\")" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "c1ecbb0a-91ce-446e-aa92-d1ff9be07713", + "metadata": {}, + "outputs": [], + "source": [ + "qcode = search_wikidata(\"Robert Gaizauskas\")" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "8ecbbae8-a985-41f4-89d8-5a64acbe1984", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'Q58329735'" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "qcode" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "79504ac6-ec57-450e-ad02-533fc9a09e6e", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Robert Gaizauskas\n", + "Yorick Wilks\n", + "Paul Morgan\n", + "Joost G Kircz\n", + "John F Farrow\n", + "Rachel Heery\n", + "Kathleen Burnett\n", + "Kwong Bor Ng\n", + "Soyeon Park\n", + "Stuart Weibel\n", + "Jean Godby\n", + "Eric Miller\n", + "Ron Daniel\n", + "Bo N Schenkman\n", + "Fredrik U Jönsson\n", + "George Lakoff\n", + "I Chris McManus\n", + "Wen Wu\n", + "George Lakoff\n", + "Mark Johnson\n", + "Richard Furuta\n", + "P David Stotts\n" + ] + }, + { + "data": { + "text/plain": [ + "'../data/2024-12-10-quickstatements_with_qcodes.txt'" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "quickstatements_with_qcodes = []\n", + "for _, row in citations.iterrows():\n", + " quickstatements_with_qcodes.append(create_quickstatements_with_qcodes(row))\n", + " time.sleep(5) # Add a delay to avoid overwhelming the Wikidata API\n", + "\n", + "# Combine all statements and save to a file\n", + "quickstatements_output_with_qcodes = \"\\n\".join(quickstatements_with_qcodes)\n", + "output_file_with_qcodes = '../data/2024-12-10-quickstatements_with_qcodes.txt'\n", + "with open(output_file_with_qcodes, 'w') as f:\n", + " f.write(quickstatements_output_with_qcodes)\n", + "\n", + "output_file_with_qcodes" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "5ded4f85-a521-449b-8af3-723d3103c4ba", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Information extraction: Beyond document retrieval\"\n", + "LAST|P577|+1998-00-00T00:00:00Z/9\n", + "LAST|P50|Q58329735\n", + "LAST|P50|Q4470008\n", + "LAST|P1433|Q6295097\n", + "LAST|P478|\"54.0\"\n", + "LAST|P433|\"1.0\"\n", + "LAST|P304|\"70-105\"\n", + "LAST|P123|\"MCB UP Ltd\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Hypertext and the literary document\"\n", + "LAST|P577|+1991-00-00T00:00:00Z/9\n", + "LAST|P50|Q62560226\n", + "LAST|P1433|Q6295097\n", + "LAST|P478|\"47.0\"\n", + "LAST|P433|\"4.0\"\n", + "LAST|P304|\"373-388\"\n", + "LAST|P123|\"MCB UP Ltd\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Modularity: the next form of scientific information presentation?\"\n", + "LAST|P577|+1998-00-00T00:00:00Z/9\n", + "LAST|P2093|\"Joost G Kircz\"\n", + "LAST|P1433|Q6295097\n", + "LAST|P478|\"54.0\"\n", + "LAST|P433|\"2.0\"\n", + "LAST|P304|\"210-235\"\n", + "LAST|P123|\"MCB UP Ltd\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"A cognitive process model of document indexing\"\n", + "LAST|P577|+1991-00-00T00:00:00Z/9\n", + "LAST|P2093|\"John F Farrow\"\n", + "LAST|P1433|Q6295097\n", + "LAST|P478|\"47.0\"\n", + "LAST|P433|\"2.0\"\n", + "LAST|P304|\"149-166\"\n", + "LAST|P123|\"MCB UP Ltd\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Review of metadata formats\"\n", + "LAST|P577|+1996-00-00T00:00:00Z/9\n", + "LAST|P2093|\"Rachel Heery\"\n", + "LAST|P1433|Q170584\n", + "LAST|P478|\"30.0\"\n", + "LAST|P433|\"4.0\"\n", + "LAST|P304|\"345-373\"\n", + "LAST|P123|\"MCB UP Ltd\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"A comparison of the two traditions of metadata development\"\n", + "LAST|P577|+1999-00-00T00:00:00Z/9\n", + "LAST|P50|Q28595291\n", + "LAST|P50|Q102420866\n", + "LAST|P50|Q92383487\n", + "LAST|P1433|Q152040\n", + "LAST|P478|\"50.0\"\n", + "LAST|P433|\"13.0\"\n", + "LAST|P304|\"1209-1217\"\n", + "LAST|P123|Q70631906\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"OCLC/NCSA metadata workshop report\"\n", + "LAST|P577|+1995-00-00T00:00:00Z/9\n", + "LAST|P2093|\"Stuart Weibel\"\n", + "LAST|P2093|\"Jean Godby\"\n", + "LAST|P50|Q51903830\n", + "LAST|P50|Q7363671\n", + "LAST|P1433|Q21143366\n", + "LAST|P478|\"nan\"\n", + "LAST|P433|\"nan\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Aesthetics and preferences of web pages\"\n", + "LAST|P577|+2000-00-00T00:00:00Z/9\n", + "LAST|P2093|\"Bo N Schenkman\"\n", + "LAST|P50|Q51946229\n", + "LAST|P1433|Q814448\n", + "LAST|P478|\"19.0\"\n", + "LAST|P433|\"5.0\"\n", + "LAST|P304|\"367-377\"\n", + "LAST|P123|Q880582\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Explaining embodied cognition results\"\n", + "LAST|P577|+2012-00-00T00:00:00Z/9\n", + "LAST|P50|Q313772\n", + "LAST|P1433|Q15817100\n", + "LAST|P478|\"4.0\"\n", + "LAST|P433|\"4.0\"\n", + "LAST|P304|\"773-785\"\n", + "LAST|P123|Q70631906\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"“The square is… bulky, heavy, contented, plain, good-natured, stupid…”: A cross-cultural study of the aesthetics and meanings of rectangles.\"\n", + "LAST|P577|+2013-00-00T00:00:00Z/9\n", + "LAST|P2093|\"I Chris McManus\"\n", + "LAST|P50|Q10919214\n", + "LAST|P1433|Q7256405\n", + "LAST|P478|\"7.0\"\n", + "LAST|P433|\"2.0\"\n", + "LAST|P304|\"130\"\n", + "LAST|P123|\"Educational Publishing Foundation\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"The metaphorical structure of the human conceptual system\"\n", + "LAST|P577|+1980-00-00T00:00:00Z/9\n", + "LAST|P50|Q313772\n", + "LAST|P50|Q1356869\n", + "LAST|P1433|Q147638\n", + "LAST|P478|\"4.0\"\n", + "LAST|P433|\"2.0\"\n", + "LAST|P304|\"195-208\"\n", + "LAST|P123|\"No longer published by Elsevier\"\n", + "\n", + "CREATE\n", + "LAST|P31|Q13442814\n", + "LAST|P1476|en:\"Specifying structured document transformations\"\n", + "LAST|P577|+1988-00-00T00:00:00Z/9\n", + "LAST|P50|Q102390435\n", + "LAST|P2093|\"P David Stotts\"\n", + "LAST|P1433|Document Manipulation and typography\n", + "LAST|P478|\"nan\"\n", + "LAST|P433|\"nan\"\n", + "LAST|P304|\"109-120\"\n", + "LAST|P123|\"Cambridge University Press Cambridge\"\n", + "\n" + ] + } + ], + "source": [ + "for row in quickstatements_with_qcodes:\n", + " print(row)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1fd02b68-5028-405e-b796-75638cbaa0df", + "metadata": {}, + "outputs": [], "source": [] } ],