This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
""" | |
usage: | |
python adjacency-list-to-edges.py [adjacency-list-file] [edge-list-file] | |
example: | |
this program will help convert this: | |
[adjacency-list-file] | |
flower,fruit | |
carafe,flower,glass,window | |
flower,dew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> | |
PREFIX getty: <https://data.getty.edu/> | |
prefix getty-media: <https://media.getty.edu/> | |
PREFIX aat: <http://vocab.getty.edu/aat/> | |
PREFIX la:<https://linked.art/ns/terms/> | |
PREFIX crmsci: <http://www.ics.forth.gr/isl/CRMsci/> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> |