--- a/src/catedit/config.py.tmpl Wed Apr 08 14:55:44 2015 +0200
+++ b/src/catedit/config.py.tmpl Wed Apr 08 15:59:57 2015 +0200
@@ -3,7 +3,7 @@
Contains all settings that can change depending on the deployment environment
"""
-from rdflib import URIRef, RDF, RDFS, Literal
+from rdflib import RDF, RDFS, Literal
from rdflib.namespace import SKOS
class AppConfig(object):
@@ -74,32 +74,25 @@
}
PROPERTY_LIST = {
- RDFS.subClassOf.toPython(): {
- "descriptive_label_fr": "Sous-classe de",
- "descriptive_label_en": "Subclass of",
- "object_type": "uriref-category",
- "usable_in_editor": True,
- "rdflib_class": RDFS.subClassOf,
- },
- RDFS.comment.toPython(): {
- "descriptive_label_fr": "Commentaire",
- "descriptive_label_en": "Comment",
- "object_type": "literal",
- "usable_in_editor": True,
- "rdflib_class": RDFS.comment,
- },
- RDFS.Resource.toPython(): {
- "descriptive_label_fr": "Ressource",
- "descriptive_label_en": "Resource",
- "object_type": "uriref-link",
- "usable_in_editor": True,
- "rdflib_class": RDFS.Resource,
- },
- SKOS.related.toPython(): {
- "descriptive_label_fr": "En relation avec",
- "descriptive_label_en": "Related to",
- "object_type": "uriref-category",
- "usable_in_editor": True,
- "rdflib_class": SKOS.related,
- }
+ "http://www.w3.org/2000/01/rdf-schema#comment": {
+ "descriptive_label_fr": "Commentaire",
+ "descriptive_label_en": "Comment",
+ "object_type": "literal",
+ "usable_in_editor": false,
+ "rdflib_class": "http://www.w3.org/2000/01/rdf-schema#comment"
+ },
+ "http://www.w3.org/2000/01/rdf-schema#Resource": {
+ "descriptive_label_fr": "Ressource",
+ "descriptive_label_en": "Resource",
+ "object_type": "uriref-link",
+ "usable_in_editor": false,
+ "rdflib_class": "http://www.w3.org/2000/01/rdf-schema#Resource"
+ },
+ "http://www.w3.org/2004/02/skos/core#related": {
+ "descriptive_label_fr": "En relation avec",
+ "descriptive_label_en": "Related to",
+ "object_type": "uriref-category",
+ "usable_in_editor": false,
+ "rdflib_class": "http://www.w3.org/2004/02/skos/core#related"
+ }
}
--- a/src/catedit/models.py Wed Apr 08 14:55:44 2015 +0200
+++ b/src/catedit/models.py Wed Apr 08 15:59:57 2015 +0200
@@ -10,7 +10,7 @@
import logging
from uuid import uuid4
-from rdflib import Graph, RDF, RDFS, Literal, URIRef
+from rdflib import Graph, RDF, RDFS, Literal
from rdflib.compare import to_isomorphic, graph_diff
from slugify import slugify
--- a/src/catedit/static/css/style.css Wed Apr 08 14:55:44 2015 +0200
+++ b/src/catedit/static/css/style.css Wed Apr 08 15:59:57 2015 +0200
@@ -17,9 +17,14 @@
display: inline;
}
-.navbar-form
+div.navbar-form-container
{
- width: 250px;
+ width: 10px;
+}
+
+.navbar-form .form-control
+{
+ width: 210px;
vertical-align: middle;
display: inline-block;
}
@@ -29,7 +34,7 @@
vertical-align: middle;
}
-.select-repo
+select.select-repo
{
float:right;
}