Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Merge requests
!5
Resolve "Parseur par type d'activité"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Parseur par type d'activité"
23-parse-activities
into
main
Overview
0
Commits
24
Pipelines
0
Changes
1
Merged
Resolve "Parseur par type d'activité"
David Rouquet
requested to merge
23-parse-activities
into
main
5 months ago
Overview
0
Commits
24
Pipelines
0
Changes
1
Closes
#23 (closed)
0
0
Merge request reports
Viewing commit
4c52443b
Prev
Next
Show latest version
1 file
+
0
−
10
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4c52443b
Clean up unused function
· 4c52443b
Eliott Sammier
authored
11 months ago
tetras_extraction/script/src/extract.py
+
0
−
10
View file @ 4c52443b
Edit in single-file editor
Open in Web IDE
Show full file
import
filecmp
from
lxml
import
etree
from
lxml
import
etree
from
rdflib
import
RDFS
,
Graph
,
Literal
,
URIRef
from
rdflib
import
RDFS
,
Graph
,
Literal
,
URIRef
from
rdflib.namespace
import
OWL
,
RDF
from
rdflib.namespace
import
OWL
,
RDF
@@ -146,14 +144,6 @@ def is_subsection(id: str):
@@ -146,14 +144,6 @@ def is_subsection(id: str):
)
)
def
compare_files
(
f1
:
str
,
f2
:
str
):
log
.
info
(
"
Files {} and {} {}.
"
.
format
(
f1
,
f2
,
"
are identical
"
if
filecmp
.
cmp
(
f1
,
f2
)
else
"
differ
"
)
)
def
main
():
def
main
():
g
=
create_graph
()
g
=
create_graph
()
Loading