Skip to content

Instantly share code, notes, and snippets.

{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://4fd0cd59-c265-46ca-8c38-6bff0a4866a7",
"@type": "sc:Manifest",
"label": "[Click to edit label]",
"metadata": [],
"description": [
{
"@value": "[Click to edit description]",
"@language": "en"
@JBPressac
JBPressac / prelib.ttl
Last active October 29, 2021 11:48
2021 CIDOC-CRM and SDHSS version
@prefix person: <http://prelib.huma-num.fr/person/> .
@prefix event: <http://prelib.huma-num.fr/event/> .
@prefix place: <http://prelib.huma-num.fr/place/> .
@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tgn: <http://vocab.getty.edu/tgn/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@JBPressac
JBPressac / developpez_spider.py
Created May 17, 2018 13:20
Spider d'extraction des premières pages du forum Python pour le tutoriel Scrapy
# coding: utf8
import scrapy
class DeveloppezSpyder(scrapy.Spider):
name = 'forum-python-developpez'
start_urls = ['https://www.developpez.net/forums/f1155/autres-langages/python-zope/general-python/']
counter = 1
@JBPressac
JBPressac / developpez_spider.py
Created May 17, 2018 12:10
Spider d'extraction de la page d'accueil du forum Python pour le tutoriel Scrapy
# coding: utf8
import scrapy
class DeveloppezSpyder(scrapy.Spider):
name = 'forum-python-developpez'
start_urls = ['https://www.developpez.net/forums/f1155/autres-langages/python-zope/general-python/']
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://dms-data.stanford.edu/kn/mw497gz1295/manifest.json",
"@type": "sc:Manifest",
"label": [
{ "@value": "Title (en)", "@language": "en" },
{ "@value": "Title (fr)", "@language": "fr" }
],
"metadata": [
{
[PrefixDeclaration]
: http://mshb.huma-num.fr/prelib/
owl: http://www.w3.org/2002/07/owl#
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
xml: http://www.w3.org/XML/1998/namespace#
xsd: http://www.w3.org/2001/XMLSchema#
ecrm: http://erlangen-crm.org/current/
gndo: http://d-nb.info/standards/elementset/gnd#
rdfs: http://www.w3.org/2000/01/rdf-schema#
skos: http://www.w3.org/2004/02/skos/core#
<?xml version="1.0"?>
<rdf:RDF xmlns="http://mshb.huma-num.fr/prelib/"
xml:base="http://mshb.huma-num.fr/prelib/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:ns="http://creativecommons.org/ns#"
xmlns:powder-s="http://www.w3.org/2007/05/powder-s#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dbo="http://dbpedia.org/ontology/"
mais<-read.table("mais.txt", header = TRUE)
## mais est une data frame. mais$Hauteur et c(100,200,300,400) sont des vecteurs. c est l'abréviation de combine.
## mais[2] ou mais["Hauteur"] renvoie la colonne Hauteur (la deuxième colonne) sous forme de data frame.
## mais[,2] ou mais$Hauteur renvoie la colonne Hauteur sous forme de vecteur.
## mais[5,2] renvoie la valeur de 2e colonne de la 5e ligne.
## mais[5, c(3,4)] renvoie les valeurs de la 3e et la 4e colonne de la 5e ligne.
## main = NULL permet de ne pas afficher de titre à l'histogramme. freq = TRUE permet de préciser que l'ordonnée est
## en effectif. Quand freq = FALSE, l'ordonnée est en densité (pour une aire de l'histogramme égale à 1).
## Pour obtenir de l'aide sur la fonction > ?hist()
hist(mais$Hauteur, breaks=c(100,200,300,400), xlab = "Hauteur (cm)", ylab = "Nombre de pieds", main = NULL, freq = TRUE)
@JBPressac
JBPressac / prelib.ttl
Last active August 29, 2015 14:21
BIO version
@prefix person: <http://prelib.huma-num.fr/person/> .
@prefix event: <http://prelib.huma-num.fr/event/> .
@prefix place: <http://prelib.huma-num.fr/place/> .
@prefix cidoc: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tgn: <http://vocab.getty.edu/tgn/> .
@JBPressac
JBPressac / prelib.ttl
Last active May 27, 2016 14:25
CIDOC-CRM version
@prefix person: <http://prelib.huma-num.fr/person/> .
@prefix event: <http://prelib.huma-num.fr/event/> .
@prefix place: <http://prelib.huma-num.fr/place/> .
@prefix cidoc: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tgn: <http://vocab.getty.edu/tgn/> .