diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d4eabcc --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "src/main/clj/clj-tparse"] + path = src/main/clj/clj-tparse + url = git@github.com:ubindr/clj-tparse.git +[submodule "src/main/clj/ubindr/clj_tparse"] + path = src/main/clj/ubindr/clj_tparse + url = git@github.com:ubindr/clj-tparse.git diff --git a/project.clj b/project.clj index 0a04bf8..3f65ac2 100644 --- a/project.clj +++ b/project.clj @@ -18,7 +18,8 @@ [hato "0.9.0"] [cheshire/cheshire "5.11.0"] [com.cognitect/transit-clj "1.0.333"] - [lambdaisland/uri "1.13.95"]] + [lambdaisland/uri "1.13.95"] + [clj-turtle "0.1.3"]] :main ^:skip-aot org.domaindrivenarchitecture.activity-pub-poc.core :profiles {:test {:test-paths ["src/test/cljc"] :resource-paths ["src/test/resources"] diff --git a/src/main/clj/org/domaindrivenarchitecture/activity_pub_poc/core.clj b/src/main/clj/org/domaindrivenarchitecture/activity_pub_poc/core.clj index 9c19c52..4bbc56f 100644 --- a/src/main/clj/org/domaindrivenarchitecture/activity_pub_poc/core.clj +++ b/src/main/clj/org/domaindrivenarchitecture/activity_pub_poc/core.clj @@ -1,11 +1,12 @@ (ns org.domaindrivenarchitecture.activity-pub-poc.core (:require [lambdaisland.souk.activitypub :as ap] [lambdaisland.souk.json-ld :as ld] + [ubindr.clj-tparse :as tparse] [clojure.spec.alpha :as s] [clojure.inspector :as ins] [hato.client :as hato] [clojure.string :as str] - [clojure.walk :as walk]) ) + [clojure.walk :as walk])) (def team-url "https://social.meissa-gmbh.de/users/team") (def like-url "https://www.w3.org/ns/activitystreams#Like") @@ -21,10 +22,9 @@ ;;(ins/inspect-tree team-ld) ;;(ins/inspect-tree team) +;(def xsd/string? string?) +;(defn rdf/langString? [value] (or (string? value) +; (regex mit @ ))) -(def xsd/String? string?) -(defn rdf/langString? [value] (or (string? value) - (regex mit @ ))) - -(s/def ::activitystreams/name (s/or xsd/string? - rdf/langString?)) \ No newline at end of file +;(s/def ::activitystreams/name (s/or xsd/string? +; rdf/langString?)) \ No newline at end of file diff --git a/src/main/clj/ubindr/clj_tparse b/src/main/clj/ubindr/clj_tparse new file mode 160000 index 0000000..d99fc8a --- /dev/null +++ b/src/main/clj/ubindr/clj_tparse @@ -0,0 +1 @@ +Subproject commit d99fc8ade8f4390a357f2403c0bcb93b5e8e05d3