コミットグラフ

57 コミット

作成者 SHA1 メッセージ 日付
守矢諏訪子 7053d77972 フォーク 2024-04-02 11:20:38 +09:00
Gabe Kangas 7821289d40
Add sensitive property to objects 2021-12-28 21:12:52 -08:00
Gabe Kangas e46ee45ec0 Make hashtag as a AS stream 2021-09-08 15:53:27 -07:00
Gabe Kangas 532ae5d0af Add Hashtag to toot objects 2021-09-08 01:15:42 -07:00
tsmethurst 5498bae4cf add manuallyApprovesFollowers property on actors 2021-08-03 15:52:03 +02:00
David Sterry b4d577f69b Fix #145 2021-06-23 10:11:37 -07:00
Cory Slep c7bbac61b6 Update READMEs and CHANGELOG for v1.0.0 2020-07-09 17:34:37 +02:00
Cory J Slep 2da4dc1d6e
Merge pull request #136 from BenLubar-PR/forgefed
Implement ForgeFed vocabulary.
2020-07-05 21:56:36 +02:00
Cory Slep 2d143b225a Add source property to activitystreams OWL file 2020-07-05 21:47:08 +02:00
Cory Slep f4f19b61b3 Update astool's README 2020-07-05 20:37:26 +02:00
Ben Lubar aa98aaa1cf
Implement ForgeFed vocabulary.
Caveat: the "description" property is probably wrong; it should match the definition of the ActivityPub(!) "source" property which is currently not in go-fed.
2020-05-08 19:09:02 -05:00
Ben Lubar b27393e8dd
add toot-namespaced types and objects except toot:focalPoint for #122 2019-12-04 16:30:01 -06:00
Cory Slep 3fc23c8c61 Remove debugging print statement 2019-10-21 22:34:16 +02:00
Cory Slep 0acf044b02 Merge remote-tracking branch 'refs/remotes/origin/master'
Pretty sure I just merged new code that would make Ben cry.
2019-10-21 22:22:30 +02:00
Cory Slep 07df3adee5 "id" and "type" are JSONLD, not ActivityStream, properties
This was a fucking nightmare, as expected. All because the PublicKey
type is not really a derivation of the ActivityStreams "Object", which I
had been hackily relying on for things to inherit the JSONLD "id" and
"type" properties.

This breaks the "id" and "type" JSONLD properties into first-class
properties known within the tool, which for now is a patchy job of duct
tape to cover the leaks.

If someone wants "PublicKey" to have more default supported properties,
I will kindly ask them to fork a code generation that suits them. This
took way too much effort to treat PublicKey like a grab bag.

This isn't the fix for, but is on the road to fixing, the known bug
about aggressive deserialization of "PublicKey" into other types. In
fact, this is on the way to *correctly* fix it without a horrible patch
in the generated code (imagine being hacky in []jen.Code{...}, that's
too much poo to put into the meta code).

The things I do to support incomplete ontologies and major Federation
players that, for whatever reason on this god-forsaken planet, decided
to adopt the ontology and type everything except "PublicKey" (I don't
count "endpoints" because that is a pile of steaming poo for another
different reason in addition to this one, and is completely optional).
2019-10-21 22:06:37 +02:00
Ben Lubar 8d7b0196cd
add standard generated code header
doing this as a separate commit to avoid messy diffs for the important part of this change
2019-10-19 17:45:12 -05:00
Ben Lubar 3ff5423014
fix linter warnings. 2019-10-19 17:43:21 -05:00
Cory Slep 00d19306e4 Fix JSON-LD conformance.
No longer create "default aliases" for JSON-LD vocabularies. This would
break compatibility since the way JSON-LD propagates aliases is pushed
downwards, and not propagated upwards. Since a lot of implementations
don't actually care about JSON-LD, do a lot of hacking to make sure that
others that expect hardcoded contexts and the like will still be able to
handle our output.

Still need to hook together the "well known alias" so it can generate
contexts that match the community, but that will be for things like the
custom mastodon and litepub extensions.

I don't want to ever have to work with JSON-LD in a static language ever
ever again. This is shit code.
2019-10-09 21:25:44 +02:00
Walfie e0b45cb7aa Fix some `type`s in examples
Also fixes spacing of some bracketed items
2019-10-01 19:28:03 -04:00
Cory Slep cd97d44b99 Fix exmaple spec 2019-09-26 20:38:25 +02:00
Cory Slep b5a6786f9e Fix astool bug to properly alias properties and types 2019-09-26 20:31:48 +02:00
Lukas Matt 4db4275adf Revert "Add pseudo-type PublicKey for actor types"
This reverts commit 9b139af408.
2019-09-16 22:48:09 +02:00
Lukas Matt 85d191bffb Add https://w3id.org/security/v1 extension
* update go-mod httpsig
2019-09-16 22:47:07 +02:00
Cory Slep 9b139af408 Add pseudo-type PublicKey for actor types 2019-09-13 22:49:56 +02:00
Cory Slep 78a8ee667f Fix @context value for activitystreams vocabulary.
The activitystreams.jsonld had its id set incorrectly.
2019-04-13 00:00:52 +02:00
Cory Slep b9a95751dc Add Insert methods for nonfunctional properties. 2019-03-24 14:25:36 +01:00
Cory Slep b5eecc692c Add SetType nonfunctional property method 2019-03-24 10:55:23 +01:00
Cory Slep 42b799393a Fix astool bug incorrectly referencing an unknown variable in generated code 2019-03-13 21:14:06 +01:00
Cory Slep 1ed044f7cf Add IsOrExtends to astool; regenerate ActivityStreams code.
The IsOrExtends will return true if an object is a type T or extends
from that type in the ActivityStreams vocabulary.
2019-03-13 21:09:51 +01:00
Cory Slep 6e4cff677a Fix formatting. 2019-02-28 22:43:35 +01:00
Cory Slep 5d598046c2 Disallow destination to have '..' in path 2019-02-28 22:13:49 +01:00
Cory Slep 87e56d8d96 Require destination directory to be specified.
Permit generation to a subdirectory and the current working directory.
2019-02-28 22:11:24 +01:00
Cory Slep 3180eaf568 Add AppendType and PrependType 2019-02-15 23:54:09 +01:00
Cory Slep 4b87e634a0 Add SetType to properties 2019-02-15 23:29:38 +01:00
Cory Slep 8a333d6192 gofmt the new constants.go file 2019-02-15 23:11:33 +01:00
Cory Slep 412c6737c3 Generate constants for type and property names 2019-02-15 23:11:08 +01:00
Cory Slep 272d7239f3 Generate generic ToType function. 2019-02-15 22:47:59 +01:00
Cory Slep 1227ec9a5a Change GetName to GetTypeName 2019-02-15 22:15:25 +01:00
Cory Slep 293cf3e752 Add more methods to Type interface 2019-02-10 15:02:32 +01:00
Cory Slep 546659ed10 Add method getting property values as a generic Type. 2019-02-10 14:09:41 +01:00
Cory Slep f769e201b2 astool can handle colliding type and property names. 2019-02-09 21:51:16 +01:00
Cory Slep a5ea850465 Run fmt on astool 2019-02-09 13:48:35 +01:00
Cory Slep 8a7ec8c3a9 Properly handle natural language map.
- Deserialization now happens correctly into the rdf:langString
  property.
- Kluges to make sure the member is being set and referred to in the
  generation code.
- No longer generate special member for natural language map nor a
  special Is method. Use the rdf:langString generated proeprties.
- Keep the Set/Get special language members for handling individual
  languages.
2019-02-09 13:22:20 +01:00
Cory Slep 54dccc70c9 Add Summary to Link.
- Other minor spec tweaks to match examples and for type property
  convenience.
2019-02-08 00:58:34 +01:00
Cory Slep 436def09b4 Add orderedItems property and properly propagate it.
- Fix bug where non-inherited properties didn't apply to a type, only
  the type's children.
- Added orderedItems.
- Excluded items property from OrderedCollectionPage.
- Fixed OrderedCollectionPage extending from two types.
2019-02-06 22:18:08 +01:00
Cory Slep 4ca4b8235f Remove interface based Resolver types.
They do not work as intended, due to differing signature for the
LessThan generated methods.
2019-02-06 20:39:30 +01:00
Cory Slep a69135b238 Inject the type property constructor at init time.
Undoes the static linking done two commits ago.
2019-02-06 20:27:19 +01:00
Cory Slep bc058086d2 Type properties automatically set at creation.
All tests pass. However:

- Need to inject the type property constructor at init time, much like
  the manager. Statically linking sucks and really slowed it down with
  the direct linking method currently being used. I suspect this makes
  it no longer compile on a Raspberry Pi 3, so even more of a reason to
  do it at init time.
- Having the type property automatically set at construction time is an
  extremely nice feature lacking in v0.
- Unfortunately, right now this introduces a hack in the convert
  package.
- Modified the 'type' property definition to also be a string for major
  convenience; it has no semantic significance as xsd:string.
2019-02-06 00:51:35 +01:00
Cory Slep f90d161ed1 Bugfixes as part of testing.
- Add missing ActivityPub actor and object properties
- Introspect type when deserializing
- Unknown on properties is now an interface
- Can now generate code when an extends hierarchy is specified multiple
  times as a range.
2019-02-06 00:23:47 +01:00
Cory Slep 7beafb477f All streams_old tests passing.
- Type resolution can handle multiple string types now.
- Stability in Disjoint/Extends/ExtendedBy literal generation, reducing
  code generation noise.
- Stability in init function package code generation, reducing the noise
  further.
2019-02-04 23:04:19 +01:00