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
<nav aria-label="Mythical University"> | |
<ul id="exTest" class="disclosure-nav"> | |
<li> | |
<button type="button" aria-expanded="true" aria-controls="id_about_menu">About</button> | |
<ul id="id_about_menu"> | |
<li> | |
<a href="#mythical-page-content">Overview</a> | |
</li> | |
<li> | |
<a href="#mythical-page-content">Administration</a> |
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
module.exports = function ( | |
/** @type {import('jscodeshift').FileInfo} */ fileInfo, | |
/** @type {import('jscodeshift').API} */ api, | |
) { | |
const ast = api.jscodeshift(fileInfo.source); | |
const nodes = ast.find("ImportDeclaration"); | |
nodes.forEach((node) => { | |
const path = node.value.source.value | |
if (path.startsWith('@/') && !path.endsWith('.js')) { |
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
{ | |
"@context": { | |
"crm": "http://www.cidoc-crm.org/cidoc-crm/", | |
"id": "@id", | |
"owl": "http://www.w3.org/2002/07/owl#", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"type": "@type" | |
}, | |
"@graph": [ |
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
from rdflib import Graph | |
# see "https://www.iflastandards.info/lrm/lrmer.html" | |
url = "https://raw.githubusercontent.com/iflastandards/LRM/master/xml/ns/lrm/lrmer.xml" | |
g = Graph() | |
g.parse(url, format="xml") | |
context = { |
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
{ | |
"@context": { | |
"crm": "http://www.cidoc-crm.org/cidoc-crm/", | |
"frbroo": "http://iflastandards.info/ns/fr/frbr/frbroo/", | |
"id": "@id", | |
"owl": "http://www.w3.org/2002/07/owl#", | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"type": "@type" | |
}, |