mike dupont
commited on
Commit
·
1aea6f0
1
Parent(s):
41f1ee1
now adding rdflib
Browse files- .gitignore +51 -0
- Dockerfile +2 -1
- README.md +8 -1
- frontend/introspector.ttl +21 -0
- frontend/src/App.js +14 -34
- requirements.txt +1 -0
.gitignore
CHANGED
@@ -23,3 +23,54 @@ yarn-debug.log*
|
|
23 |
yarn-error.log*
|
24 |
/frontend/build/
|
25 |
/frontend/node_modules/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
yarn-error.log*
|
24 |
/frontend/build/
|
25 |
/frontend/node_modules/
|
26 |
+
/foaf.rdf
|
27 |
+
# -*- mode: gitignore; -*-
|
28 |
+
*~
|
29 |
+
\#*\#
|
30 |
+
/.emacs.desktop
|
31 |
+
/.emacs.desktop.lock
|
32 |
+
*.elc
|
33 |
+
auto-save-list
|
34 |
+
tramp
|
35 |
+
.\#*
|
36 |
+
|
37 |
+
# Org-mode
|
38 |
+
.org-id-locations
|
39 |
+
*_archive
|
40 |
+
|
41 |
+
# flymake-mode
|
42 |
+
*_flymake.*
|
43 |
+
|
44 |
+
# eshell files
|
45 |
+
/eshell/history
|
46 |
+
/eshell/lastdir
|
47 |
+
|
48 |
+
# elpa packages
|
49 |
+
/elpa/
|
50 |
+
|
51 |
+
# reftex files
|
52 |
+
*.rel
|
53 |
+
|
54 |
+
# AUCTeX auto folder
|
55 |
+
/auto/
|
56 |
+
|
57 |
+
# cask packages
|
58 |
+
.cask/
|
59 |
+
dist/
|
60 |
+
|
61 |
+
# Flycheck
|
62 |
+
flycheck_*.el
|
63 |
+
|
64 |
+
# server auth directory
|
65 |
+
/server/
|
66 |
+
|
67 |
+
# projectiles files
|
68 |
+
.projectile
|
69 |
+
|
70 |
+
# directory configuration
|
71 |
+
.dir-locals.el
|
72 |
+
|
73 |
+
# network security
|
74 |
+
/network-security.data
|
75 |
+
|
76 |
+
/__pycache__/
|
Dockerfile
CHANGED
@@ -27,6 +27,7 @@ ENV HOME=/home/user \
|
|
27 |
WORKDIR $HOME/app
|
28 |
COPY --from=builder /app/build ./static
|
29 |
COPY app.py app.py
|
30 |
-
|
|
|
31 |
CMD ["python", "app.py"]
|
32 |
|
|
|
27 |
WORKDIR $HOME/app
|
28 |
COPY --from=builder /app/build ./static
|
29 |
COPY app.py app.py
|
30 |
+
COPY introspector_rdf.py introspector_rdf.py
|
31 |
+
COPY frontend/introspector.ttl introspector.ttl
|
32 |
CMD ["python", "app.py"]
|
33 |
|
README.md
CHANGED
@@ -29,11 +29,18 @@ Run reports via notebooks
|
|
29 |
|
30 |
#### Run apps
|
31 |
|
|
|
|
|
32 |
Load different apps and other servlets like streamlit and gradio via safe containers
|
|
|
|
|
|
|
33 |
create custom displays via iframes.
|
34 |
-
create directory to select results
|
35 |
and display other results from huggingface datasets.
|
36 |
|
|
|
|
|
|
|
37 |
#### Generate logos and code
|
38 |
|
39 |
Use ai services to generate logos and html pages for the project, give them feedback,
|
|
|
29 |
|
30 |
#### Run apps
|
31 |
|
32 |
+
#### Models
|
33 |
+
|
34 |
Load different apps and other servlets like streamlit and gradio via safe containers
|
35 |
+
import other results from other huggingface datasets.
|
36 |
+
|
37 |
+
##### Views
|
38 |
create custom displays via iframes.
|
|
|
39 |
and display other results from huggingface datasets.
|
40 |
|
41 |
+
##### Controller
|
42 |
+
create directory to select results
|
43 |
+
|
44 |
#### Generate logos and code
|
45 |
|
46 |
Use ai services to generate logos and html pages for the project, give them feedback,
|
frontend/introspector.ttl
CHANGED
@@ -23,3 +23,24 @@
|
|
23 |
|
24 |
rdfs:isDefinedBy <https://example.org/self-reflective-turtle> ;
|
25 |
rdfs:isReferencedBy <https://example.org/self-reflective-turtle>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
rdfs:isDefinedBy <https://example.org/self-reflective-turtle> ;
|
25 |
rdfs:isReferencedBy <https://example.org/self-reflective-turtle>.
|
26 |
+
|
27 |
+
# Additional Links
|
28 |
+
<https://huggingface.co/introspector>
|
29 |
+
rdfs:label "Hugging Face"@en ;
|
30 |
+
rdfs:seeAlso <https://huggingface.co/introspector> ;
|
31 |
+
dcterms:identifier <https://huggingface.co/introspector>.
|
32 |
+
|
33 |
+
<https://github.com/meta-introspector>
|
34 |
+
rdfs:label "Github Repositories"@en ;
|
35 |
+
rdfs:seeAlso <https://github.com/meta-introspector> ;
|
36 |
+
dcterms:identifier <https://github.com/meta-introspector>.
|
37 |
+
|
38 |
+
<https://h4ck3rm1k3.wordpress.com>
|
39 |
+
rdfs:label "Blog posts"@en ;
|
40 |
+
rdfs:seeAlso <https://h4ck3rm1k3.wordpress.com> ;
|
41 |
+
dcterms:identifier <https://h4ck3rm1k3.wordpress.com>.
|
42 |
+
|
43 |
+
<https://x.com/introsp3ctor>
|
44 |
+
rdfs:label "Tweets"@en ;
|
45 |
+
rdfs:seeAlso <https://x.com/introsp3ctor> ;
|
46 |
+
dcterms:identifier <https://x.com/introsp3ctor>.
|
frontend/src/App.js
CHANGED
@@ -28,10 +28,10 @@ function App() {
|
|
28 |
})
|
29 |
.catch((error) => {
|
30 |
console.log("There was an error retrieving the statement list: ", error);
|
31 |
-
setStatements(JSON.stringify(error));
|
32 |
});
|
33 |
}, []);
|
34 |
-
|
35 |
return (
|
36 |
<div className="App">
|
37 |
<header className="App-header">
|
@@ -42,40 +42,20 @@ function App() {
|
|
42 |
aria-label="Experiments"
|
43 |
>
|
44 |
<TableHeader>
|
45 |
-
<TableColumn>
|
46 |
-
<TableColumn>
|
|
|
47 |
</TableHeader>
|
|
|
48 |
<TableBody>
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
<TableCell><a href="https://github.com/meta-introspector">Github</a></TableCell>
|
58 |
-
</TableRow>
|
59 |
-
|
60 |
-
<TableRow key="bp">
|
61 |
-
<TableCell>
|
62 |
-
<pre><code>Blog posts</code></pre></TableCell>
|
63 |
-
<TableCell><a href="https://h4ck3rm1k3.wordpress.com">Wordpress</a></TableCell>
|
64 |
-
</TableRow>
|
65 |
-
|
66 |
-
<TableRow key="tweets">
|
67 |
-
<TableCell>
|
68 |
-
<pre><code>Tweets</code></pre></TableCell>
|
69 |
-
<TableCell><a href="https://x.com/introsp3ctor">Twitter</a></TableCell>
|
70 |
-
</TableRow>
|
71 |
-
|
72 |
-
<TableRow key="statements">
|
73 |
-
<TableCell>
|
74 |
-
<pre><code>RDF Statements of knowledge from api</code></pre></TableCell>
|
75 |
-
<TableCell> {statements} </TableCell>
|
76 |
-
</TableRow>
|
77 |
-
|
78 |
-
|
79 |
</TableBody>
|
80 |
</Table>
|
81 |
</p>
|
|
|
28 |
})
|
29 |
.catch((error) => {
|
30 |
console.log("There was an error retrieving the statement list: ", error);
|
31 |
+
setStatements([["error","text",JSON.stringify(error)]]);
|
32 |
});
|
33 |
}, []);
|
34 |
+
console.log("statements ", statements);
|
35 |
return (
|
36 |
<div className="App">
|
37 |
<header className="App-header">
|
|
|
42 |
aria-label="Experiments"
|
43 |
>
|
44 |
<TableHeader>
|
45 |
+
<TableColumn>Subject</TableColumn>
|
46 |
+
<TableColumn>Predicate</TableColumn>
|
47 |
+
<TableColumn>Object</TableColumn>
|
48 |
</TableHeader>
|
49 |
+
|
50 |
<TableBody>
|
51 |
+
{statements.map((statement,index)=>(
|
52 |
+
<TableRow key={index}>
|
53 |
+
<TableCell>{statement[0]}</TableCell>
|
54 |
+
<TableCell>{statement[1]}</TableCell>
|
55 |
+
<TableCell>{statement[2]}</TableCell>
|
56 |
+
</TableRow>
|
57 |
+
|
58 |
+
))}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
</TableBody>
|
60 |
</Table>
|
61 |
</p>
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
fastapi==0.104.*
|
|
|
2 |
#torch==2.1.*
|
3 |
#transformers==4.*
|
4 |
uvicorn[standard]==0.24.*
|
|
|
1 |
fastapi==0.104.*
|
2 |
+
rdflib
|
3 |
#torch==2.1.*
|
4 |
#transformers==4.*
|
5 |
uvicorn[standard]==0.24.*
|